- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh 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-26-2005 01:34 AM
10-26-2005 01:34 AM
ssh login
I just setup a HP-UX 11i serverC into an existing environment where currently all servers are login using ssh from a centralise serverA as follows without being prompted root login password.
serverA#> ssh serverB
Can anyone advise what entries need to be added into serverB to allow this access?
Thanks/cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 01:54 AM
10-26-2005 01:54 AM
Re: ssh login
You have to create create $HOME/.ssh/authorized_keys to make this happen.
there are many threads already there on the same subject. See
http://www2.itrc.hp.com/service/james/search.do?searchtext=ssh+without+password&hpl=1&todo=search&searchcriteria=allwords&from=forums&searchcategory=ALL&rn=25&presort=rank&source=7000&esc=us.support.itrc.hp.com&wpa=forums1.itrc.hp.com%3A80&origin=0&chkServStor=on
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 01:56 AM
10-26-2005 01:56 AM
Re: ssh login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 02:08 AM
10-26-2005 02:08 AM
Re: ssh login
or
if you do not want to mess with creating and massaging key pairs, go to another system let's say serverC, which trusts serverA, goto same user's home directory
cd .ssh
grep serverA authorized_keys
copy this key (make sure it is copied without any line breaks)
then
go to serverB and go to the same user's home directory
if you do not have a .ssh directory, create it otherwise
cd .ssh
cat >> authorized_keys
paste the copied key in the buffer
hit ctrl-D
make sure your authorized keys ownership is right and owned by the username and its default group and permissions is no looser than 640.
you should be good to go.
at your first attempt you will be asked to confirm the identity of serverB from serverA but after that, there are no questions asked.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 02:33 AM
10-26-2005 02:33 AM
Re: ssh login
Say you have to set ssh between server C and A then:
On server C:
1. # ssh A
When it asks for password just use
This will create /.ssh directory in server C.
2. # ssh-keygen -d
DO NOT PUT ANY PASSPHRASE (just provide blank ENTERs)
Verify that id_dsa.pub file is created in /.ssh directory. This is your public key. You need to distribute it to other machines like here server A.
Copy or ftp this file id_dsa.pub to server A say in /tmp directory
Then on server A:
3. # cat /tmp/id_dsa.pub >> /.ssh/authorized_keys
Now you can do login to server C from server A without being prompted for password.
e.g.
On server A
# ssh C
This will give you root login of server C.
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 02:40 AM
10-26-2005 02:40 AM
Re: ssh login
I tried copying directly the /root/home/root/.ssh/authorized_keys from trusted serverA over to serverC but when i issue the command
serverA> ssh serverC or ip address
NOTHING JUST HUNG THERE.
thanks/cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 02:42 AM
10-26-2005 02:42 AM
Re: ssh login
Try running a debug ssh session to ServerC..
ssh -vvv serverC (not sure of syntax...)