![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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? |
| Forum Sponsor | ||
|
|
|
|||
|
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 ) |