The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-04-2003
Registered User
 

Join Date: Dec 2003
Posts: 7
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-04-2003
Registered User
 

Join Date: Dec 2003
Posts: 7
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
Reply With Quote
  #3 (permalink)  
Old 07-17-2004
Registered User
 

Join Date: Apr 2004
Posts: 35
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
Reply With Quote
  #4 (permalink)  
Old 07-17-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,453
Here's one thing to check....authorized_keys will be ignored if it is writable or could be replaced by anyone other than you. So $HOME must be writable only by you. Ditto $HOME/.ssh and $HOME/.shh/authorized_keys. This also applies to the parent directory of $HOME all the way back to /.
Reply With Quote
  #5 (permalink)  
Old 07-18-2004
Registered User
 

Join Date: Apr 2004
Posts: 35
Perderabo

This is my folder structure..

/home/ravala/.ssh

ravala and ssh are writable only by me. I dont have permissions to change the properties of home.

But still it prompts for password.
Reply With Quote
  #6 (permalink)  
Old 07-19-2004
Registered User
 

Join Date: Apr 2004
Posts: 35
Thumbs up

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
Reply With Quote
  #7 (permalink)  
Old 05-09-2008
Registered User
 

Join Date: Mar 2008
Posts: 27
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux, solaris

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0