- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- ssh without password
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
11-07-2005 02:42 PM
11-07-2005 02:42 PM
I have a normal a/c called uat, and need to access a remote system machine called guest@machine1. They gave me a key and I have put into uat 's HOME under .ssh.
1. Let's say I am the client. Should I rename the given key as id_rsa or id_dsa or authorized_keys ? I am confused.
2. Since I am using an a/c called 'uat', but I want to sftp some files from there using 'guest' a/c. How can it be password less ?
THank you very much.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 03:01 PM
11-07-2005 03:01 PM
Solutionyou must have same users on both the servers to have password-less authentication, ie using public keys. Also, you must rename the public key of the client as authorised_keys on the server machine.
Refer the following doc for setting up public key authentication between two unix machines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 05:43 PM
11-07-2005 05:43 PM
Re: ssh without password
you can overwrite the actual username with the option "-u" for ssh. If you are logged in with uat, and you want to connect a remote maschine with the login name "guest", use the command
ssh -u guest
Regards,
Patrick
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 05:52 PM
11-07-2005 05:52 PM
Re: ssh without password
Client Server
machine 1 ---> machine 2
(a/c : uat) (a/c: guest)
Now, I have a key generated from machine2, and have it pasted in /.ssh/authorized_keys in machine1. What else do I need to make it passwordless ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 06:11 PM
11-07-2005 06:11 PM
Re: ssh without password
append the content of $HOME/.ssh/id_dsa.pub file to remotehost:/home/desired_user's_homedir/.ssh/authorized_keys file
and that's it you should be able to login as the desired_user without password on remotehost.
also make sure you have the correct permissions set on .ssh/*
id_dsa shoud have 600
all other files in .ssh can be 644
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 07:14 PM
11-07-2005 07:14 PM
Re: ssh without password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 07:29 PM
11-07-2005 07:29 PM
Re: ssh without password
Thus
ssh -l test1 remotesystem will login without password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 07:54 PM
11-07-2005 07:54 PM
Re: ssh without password
Create the ssh keys on the client, copy the id_rsa.pub to the guest home directory on the server, ie /home/guest/.ssh. Then execute these commands,
#chmod 0700 /home/guest/.ssh
#mv /home/guest/.ssh/id_rsa.pub /home/guest/.ssh/authorized_keys
#chmod 0600 /home/guest/.ssh/authorised_keys
Then execute from client machine
ssh guest@server
This should work, otherwise, execute ssh command with debugging option as
#ssh --v guest@server and post the output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 07:56 PM
11-07-2005 07:56 PM
Re: ssh without password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 03:43 AM
11-09-2005 03:43 AM
Re: ssh without password
that as a default in ~uat/.ssh/config with
lines like-
Host machine2
User guest
This is documented in "man ssh_config".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 07:06 AM
11-09-2005 07:06 AM
Re: ssh without password
mea maxima culpa. I mean "ssh -l", not "ssh -u". My fault.
Regards,
Patrick
Patrick