- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Password Less Login
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
Forums
Discussions
Discussions
Discussions
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
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
10-16-2010 11:41 PM
10-16-2010 11:41 PM
I had tried this Method for password less login but it seems not working
1.Login to serverA as user1.
2.$ssh-keygen -t dsa
Press enter for all the questions.It will create the private/public keys
under $HOME/.ssh/
File names are id_rsa and id_rsa.pub
3.Now you need to copy the id_rsa.pub file content into ServerB $HOME/.ssh/authorized_keys file
ServerA#scp ~user1/.ssh/id_rsa.pub ServerB:/tmp
Login to ServerB server
ServerB#cat /tmp/id_rsa.pub >> ~user1/.ssh/authorized_keys
Make sure the following permissions on serverB.
Home directory should have 755 permission (users home directory)
$HOME/.ssh directory should have 700 permission
$HOME/.ssh/authorized_keys file should have 600 or 640 permission
Please suggest if some modification need to me made
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2010 12:15 AM
10-17-2010 12:15 AM
SolutionServerA and ServerB both should run the ssh daemons.To allow ServerA to SSH to ServerB without password
Login to the source server (server A)
# ssh-keygen -t rsa
accpet all defaults sttings.
This generates two files id_rsa.pub and id_rsa
Now,id_rsa.pub needs to be appended to the authorized_keys file on ServerB
Rename this file to some other name , for identification.
#mv id_rsa.pub
copy this file to serverB.
# scp
Login to server B
move to the .ssh folder under your home directory
Take a backup of the file authorized_keys
#cp -p authorized_keys authorized_keys.backup
# cat
Now try login from server A to B
Note: If you are implementing it first time there will not be any authorized_keys file. So you can simply rename the file id_rsa.pub
Repeat this process starting from server B to A to allow passwordless login from server B to A
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2010 04:32 AM
10-17-2010 04:32 AM
Re: Password Less Login
Not a very detailed description of anything.
You might:
Look at any of the dozens of old threads on
this topic.
Show what "seems not working".
Add "-v" (or "-vv", ...) to your (invisible)
"ssh" command.
Look for interesting messages in the system
log file(s) on the server system.
> 2.$ssh-keygen -t dsa
> [...]
> File names are id_rsa and id_rsa.pub
You put DSA keys into files named "*rsa*"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2010 06:25 PM
10-17-2010 06:25 PM
Re: Password Less Login
Refer attached document.
Chandra
Assigning points will motivate each one in this forum
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2010 07:46 PM
10-17-2010 07:46 PM
Re: Password Less Login
I had assighned a points to all.
Regards
Indrajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2010 11:49 PM
10-17-2010 11:49 PM