- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need to add new server for passwordless ssh lo...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 10:55 AM
тАО08-31-2009 10:55 AM
I need to setup a passwordless login from server A to B.
Both the servers are running SSH daemons and has already been setup for passwordless
connection for other servers.
I just need to add one additional server for passwordless ssh login.
Can someone suggest how to do it ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 11:14 AM
тАО08-31-2009 11:14 AM
SolutionAssuming the new system is C,
1. login to C, make a directory .ssh in your home directory.
2. run ssh-keygen -t rsa, respond all the request with return key.
3. cd to .ssh and look for file id_rsa_pub.
4. Login to A, cd to .ssh, and append the id_rsa_pub file from C to file authorized_keys in A.
5. Do the same thing in B.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 11:14 AM
тАО08-31-2009 11:14 AM
Re: Need to add new server for passwordless ssh login
You have to generate the ssh key with ssh_keygen in server A , and to copy the file to server B with name authorized_keys under ~home3/.ssh/ directory:
check this out:
Transparent ssh i.e ssh with no password:
http://www.tek-tips.com/faqs.cfm?fid=5600
Also,
http://forums13.itrc.hp.com/service/forums/questionanswer.do?&threadId=1364024
Hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 11:22 AM
тАО08-31-2009 11:22 AM
Re: Need to add new server for passwordless ssh login
Hope this document helps:
Check out:
http://forums13.itrc.hp.com/service/forums/questionanswer.do?&threadId=952222
Hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 11:45 AM
тАО08-31-2009 11:45 AM
Re: Need to add new server for passwordless ssh login
login to server A as username which will initiate the passwordless login and run
/opt/ssh/bin/ssh-keygen -t {rsa or dsa here}
you need to hit enter 3 times (may be different for you how many times you have to hit it) until you return to the shell prompt, accepting no pass phrase option for your key pair. One caveat here: if you have a previously recorded id_rsa recorded in the default location, you will write over it, which will make your previous password-less login setups and cause them to fail.
If you have the previously created public and private key pair available under ~username/.ssh, you may skip this step. As a matter of fact, you *SHOULD* skip this step to keep the existing authentication pairs alive.
Then you need to copy the .pub portion of the key pair to server B using any mothod you lie, probably utilizing a password one last time:
ftp serverB
username
password
ftp> bin
ftp> put id_rsa.pub /tmp/id_rsa.pub
Then you need to login to the server B as the same user as you are in server A, again using your password and run:
cat /tmp/id_rsa.pub >> ~/.ssh/authorized_keys
this should do it. If it is not working, make sure the private part of the key pair has no permissions for anyone but the owner.
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2009 12:29 PM
тАО08-31-2009 12:29 PM