Results 1 to 2 of 2
what iḿ i dong wrong? i have moved the public key to both boxes
lance(at)bermudezl:~/MyDownloads$ scp avast4workstation_1.3.0-2_i386.deb 192.168.2.103:
The authenticity of host '192.168.2.103 (192.168.2.103)' can't be established.
RSA key fingerprint ...
- 03-05-2010 #1Linux Newbie
- Join Date
- Jan 2010
- Location
- usa
- Posts
- 124
scp and ssh
what iḿ i dong wrong? i have moved the public key to both boxes
lance(at)bermudezl:~/MyDownloads$ scp avast4workstation_1.3.0-2_i386.deb 192.168.2.103:
The authenticity of host '192.168.2.103 (192.168.2.103)' can't be established.
RSA key fingerprint is 5e:0e:26:bc:26:dd:64:a5:ab:ee:56:31:5f:50:70:58.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.2.103' (RSA) to the list of known hosts.
lance(at)192.168.2.103's password:
Permission denied, please try again.
lance(at)192.168.2.103's password:
Permission denied, please try again.
lance(at)192.168.2.103's password:
Permission denied (publickey,password).
lost connection
lance(at)bermudezl:~/MyDownloads$ ssh -C -X pete(at)192.168.2.103
Linux wanda 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 01:26:53 UTC 2010 i686
To access official Ubuntu documentation, please visit:
Last login: Fri Mar 5 10:42:35 2010 from 192.168.2.105
pete(at)wanda:~$
- 03-05-2010 #2
normally when one attempts to login with a public/private key authentication via ssh or scp they use the -i argument, telling it use a key to authenticate. If it does fail, then it will ask for the username and password.
Also note in scp, you have to give a username too unless you want to use the username you are running the command as. I also define a path in scp too.
e.g.
Code:ssh -i /path/to/private/key user1@somemachine.com scp -i /path/to/key myfile user1@somemachine.com:/put/file/here
linux user # 503963


Reply With Quote