Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'using ssh keys instead of passwords' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
using ssh keys instead of passwords
Authored by: perdedor on Oct 18, '02 11:30:44AM

skip the whole password prompting with this:

ssh-keygen -d <hit enter three times to accept the defaults>
scp ~/.ssh/ida_dsa.pub user@remote.host:~/.ssh/authorized_keys2

and that\'ll be the last time you are prompted for your password on that remote host as that user. if .ssh/authorized_keys2 file already exits (most likely not if this is new info for ya) scp the file under as authorized_keys2.myhost and then

cd ~/.ssh && cat authorized_keys2.myhost >> authorized_keys2\



[ Reply to This | # ]
using ssh keys instead of passwords
Authored by: rocteur on Oct 21, '02 09:00:21AM

Thanks this is GREAT!



[ Reply to This | # ]
using ssh keys instead of passwords
Authored by: robertop on Jan 21, '03 09:42:20AM

I did this and i works fine when using ssh, but when I try to scp a file
I get an error saying:
scp:warning: Executing scp1 compatability
scp:FATAL:Executing ssh1 in compatability mode failed (chech that scp1 is in your path)

The remote site runs 2.3.0 from SSH corporation so I can't understand why the
servers are trying version 1 of the protocol.

Any hints??

/Rob



[ Reply to This | # ]