![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| passwordless login from a server to another server | johnl | Shell Programming and Scripting | 2 | 05-16-2008 05:27 AM |
| sftp using authorized_keys in unix | rinku | Shell Programming and Scripting | 1 | 03-24-2008 07:05 AM |
| Passwordless authentication via SSH | RegX | AIX | 1 | 08-29-2007 06:42 AM |
| monitoring SSH authorized_keys | prvnrk | UNIX for Advanced & Expert Users | 1 | 07-23-2007 07:16 AM |
| monitoring SSH authorized_keys | prvnrk | Shell Programming and Scripting | 0 | 07-19-2007 08:10 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
authorized_keys and passwordless login
I am trying to set up ssh/scp to be able to login in w/o using a password. The man pages for ssh and ssh-keygen explain how to do this.
So, using "rsa1" style, I created the public and private keys by way of ssh-keygen, then added the contents of "$HOME/.ssh/identity.pub" to a newly created "$HOME/.ssh/authorized_keys" file on the remote system I am want to log into. But, it is still asking me for a password when I ssh to the remote server. I did not use a passphrase, either, when creating the keys by way of ssh-keygen. What am I doing wrong????? I also found this resource on the web, and it verifys that I am doing this step by step. If anyone has done this, please let me know what I am doing wrong!!! Thanks in advance, MC |
| Forum Sponsor | ||
|
|
|
|||
|
got it working . . .
Problem was . . . ssh was expecting SSH2/protocol 2. So, I used the -oProtocol=1 option on the ssh/scp commands, and it works!!!
You can either manually override it using the above -o option, or change the Protocol in ssh_config(default is 2,1, meaning that version 2 is tried first and falls back to version 1 if 2 is not available, that is why I was getting hosed . . . MC |
|
|||
|
Passwordless login
Hey,
I am facing the same problem as you did. But using the -o option manully and trying also is not resolving the problem... Any suggestions.....Basically, i got it working from machine A to B...i am not able to do so from B to A |
|
|||
|
Hi,
I got this working, but not sure how this worked. I deleted all the old keys and created new keys . Also checked the folder permission as Perderabo suggested. It works fine now without any password prompt. Thanks for all your help |
|
|||
|
Hi guys,
I'm bumbling through something similar. I'm having trouble understanding the client server terminology. I have a Laptop with Redhat linux on, and I'd like to back the hard disk up, across my home LAN to a Sun Solaris 8 server. In this case, which is regarded as the server and which is the client? Many thanks and kind regards, Stin |
|||
| Google The UNIX and Linux Forums |