The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM
Home Forums Register Rules & FAQ 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!


Other UNIX.COM Threads 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 Search this Thread Display Modes
  #1 (permalink)  
Old 12-04-2003
Registered User
 

Join Date: Dec 2003
Posts: 7
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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: 34
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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,206
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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: 34
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 02:54 AM.


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

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102