The UNIX and Linux Forums  

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


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
login password.... venkatramana UNIX for Dummies Questions & Answers 1 12-07-2007 05:03 AM
Root login password pmpx SUN Solaris 1 02-23-2006 11:03 AM
login & password cab UNIX for Advanced & Expert Users 8 08-01-2003 12:33 PM
Password change at login???? rrivas UNIX for Dummies Questions & Answers 4 08-12-2002 03:02 PM
root login password subho77 IP Networking 4 01-31-2002 07:33 PM

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

Join Date: Jan 2008
Posts: 17
login ssh without password

There is two server, server A and server B. In server A, I would like to login ssh to server B without typing password. (no need for ssh2)
Therefore, I do the followings:

Server A:
>cd ~
>mkdir .ssh
>ssh-keygen -t dsa -f .ssh/id_dsa
Then copy the file id_dsa.pub to Server B

Server B:
>cd ~
>mkdir .ssh
>cat id_dsa.pub >> ~/.ssh/authorized_keys
>chmod 640 authorized_keys
>rm id_dsa.pub

However, in server A, every time I login server B with ssh. It still prompts password.
Is there anything else needed to be setup?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-09-2008
Registered User
 

Join Date: Apr 2008
Posts: 1
By default, ssh will try all available authentications IN ORDER (what the default order is, I'm not sure). To make sure that it doesn't try password, add the following options to your ssh command

-o 'PasswordAuthentication no'

and

-o 'PreferredAuthentications publickey'

Also, some servers and clients can be picky about permissions on the key files. Check your documentation to make sure your permissions are correct.

One other thing... It seems like it would be more secure to keep your private key at the client and put your public key on BOTH servers. Then, using authentication forwarding you can login to server A and then from server A to server B seamlessly. Remember, the strength of publickey authentication relies on being able to keep the private key private. Leaving private keys laying around on servers (especially if it's not password protected) seems like a bad idea.



Regards,

Brian Pence
Celestial Software
AbsoluteTelnet (for ssh and telnet on Windows )
Reply With Quote
  #3 (permalink)  
Old 04-13-2008
Registered User
 

Join Date: Jan 2008
Posts: 17
Thank you!!
It is ok now after setting the ssh option.

Besides, how to use authentication forwarding?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:50 AM.


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