HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Passwordless SSH using differing IDs
Operating System - HP-UX
1833405
Members
3006
Online
110052
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-07-2006 12:17 AM
02-07-2006 12:17 AM
Passwordless SSH using differing IDs
I have a User who wishes to use passwordless ssh from, for example, ID 'idA' on server 'server1' to ID 'idB' on server 'server2', and vice versa. Is this possible? What I am getting is a prompt for a password when I type:
ssh -l idB server2 (from server1 as idA)
and
ssh -l idA server1 (from server2 as idB)
Any ideas?
ssh -l idB server2 (from server1 as idA)
and
ssh -l idA server1 (from server2 as idB)
Any ideas?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 12:26 AM
02-07-2006 12:26 AM
Re: Passwordless SSH using differing IDs
I have not tried this.
I believe this is possible.
It presents serious security concerns.
Look at the $HOME/.ssh/authorized_keys
file.
You will see a user name in the file.
You can append entries onto the file.
Then your issue has to do with ownership of the home directories and the .ssh folders.
You MIGHT be able to get away with creating a group for the two or more users and having that group own the folders and have rw permissions for that group alone.
That is how I'd go about it anyway.
SEP
I believe this is possible.
It presents serious security concerns.
Look at the $HOME/.ssh/authorized_keys
file.
You will see a user name in the file.
You can append entries onto the file.
Then your issue has to do with ownership of the home directories and the .ssh folders.
You MIGHT be able to get away with creating a group for the two or more users and having that group own the folders and have rw permissions for that group alone.
That is how I'd go about it anyway.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2006 12:44 AM
02-07-2006 12:44 AM
Re: Passwordless SSH using differing IDs
Yes you can,
you have do configure a publickey authentication:
login IDA@SERVER1
SERVER1# ssh-keygen -t rsa -C "ssh_for_`whoami`@`hostname`" -f ~/.ssh/id_rsa
empty for no passphrase
SERVER1# cp -p id_rsa.pub authorized_keys.SERVER1
SERVER1# chmod 600 auth*
SERVER1# scp -p authorized_keys.SERVER1 SERVER2:/$PWD
login IDB@SERVER2
SERVER2# cat authorized_keys authorized_keys.SERVER1 > authorized_keys.new
SERVER2# mv authorized_keys.new authorized_keys
SERVER2# chmod 600 authorized_keys
IDA@SERVER1
SERVER1# ssh IDB@SERVER2
yes
(and viceversa)
Pablo
you have do configure a publickey authentication:
login IDA@SERVER1
SERVER1# ssh-keygen -t rsa -C "ssh_for_`whoami`@`hostname`" -f ~/.ssh/id_rsa
empty for no passphrase
SERVER1# cp -p id_rsa.pub authorized_keys.SERVER1
SERVER1# chmod 600 auth*
SERVER1# scp -p authorized_keys.SERVER1 SERVER2:/$PWD
login IDB@SERVER2
SERVER2# cat authorized_keys authorized_keys.SERVER1 > authorized_keys.new
SERVER2# mv authorized_keys.new authorized_keys
SERVER2# chmod 600 authorized_keys
IDA@SERVER1
SERVER1# ssh IDB@SERVER2
yes
(and viceversa)
Pablo
share share share
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP