- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
10-29-2006 10:57 PM
10-29-2006 10:57 PM
ssh without password
I have the necessity to run a korn shell on a remote server (both HP-UX servers) using the ssh command.
The sintax that I use is
ssh -l
Pressing enter I need to set the password of the remote user. Is it possible to evoid to insert the password? In this way I can insert in may local ksh script the above command.
Many thanks in advance for your kind cooperation.
Giovanni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2006 11:01 PM
10-29-2006 11:01 PM
Re: ssh without password
This question has been handled many times before. Check out these threads:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=982690
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=1005579
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=954343
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2006 11:39 PM
10-29-2006 11:39 PM
Re: ssh without password
Giovanni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 03:33 AM
10-30-2006 03:33 AM
Re: ssh without password
After reading the documentation and following the steps I have the same problem asking the remote password.
I try to explain my configuration steps and douts.
Context: CLIENT1 & CLIENT2 starts ssh to SERVER1 (user usr1)
(CLIENTS and SERVER both hp-ux o.s.)
CLIENT1 (user cl1)
I note already defined $HOME/.ssh directory and the file known_hosts (NOTE this file is different from known_hosts in CLIENT2 ... Is this correct?)
on clients I have executed:
1) ssh-keygen -t rsa
pressing enter for passphrase request
2) scp /.ssh/id_rsa.pub usr1@SERVER1:/id_rsa.pub
(I need to enter the password of the remote user)
SERVER1
1) chmod 700 .ssh
2) cat id_rsa.pub >> .ssh/authorized_keys
3) rm id_rsa.pub
4) chmod 600 .ssh/authorized_keys
TEST: on the CLIENT1
ssh usr1@
the message received is:
usr1@
Any help well be well accepted.
Thanks in advance.
Giovanni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 06:15 AM
10-30-2006 06:15 AM
Re: ssh without password
Has to be 755 or lower.
You need to add the ket in id_rsa.pub from client1 to the authorized_keys file on client2 and vice versa.
No need to remove id_rsa.pub.
Also, no need to do a ssh -l
Should just be
ssh host command
Or if from root, then:
su - user -c "ssh host command"
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 06:40 AM
10-30-2006 06:40 AM
Re: ssh without password
Between two systems:
System 1
ssh-keygen -t dsa
System 2
ssh-keygen -t dsa
System 1.
scp -p /username/.ssh/id_dsa.pub system2:/username/.ssh/authorized_keys
System 2
scp -p /username/.ssh/id_dsa.pub system1:/username/.ssh/authorized_keys
Want to know whats really going on?
http://www.hpuxconsulting.com/5003.ppt
or
http://www.hpuxconsulting.com/5004.ppt
They're both pretty useful.
SEP
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
10-30-2006 07:05 AM
10-30-2006 07:05 AM
Re: ssh without password
2 check the /opt/ssh/etc/sshd_config file for correct parameters, in particular:
AuthorizedKeysFile .ssh/authorized_keys
has to point to the user's $HOME/.ssh directory to use a different key for each user.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 10:05 PM
10-30-2006 10:05 PM
Re: ssh without password
Waiting for a set-up of /opt/ssh/etc/sshd_config ssh file (I do not have at the moment the permissions) for the AuthorizedKeysFile paramether, I ask you if it is correct that I find set only these parameters:
Protocol 2
KerberosAuthentication yes
UsePAM yes
X11Forwarding yes
X11UseLocalhost no
Subsystem sftp /opt/ssh/libexec/sftp-server
Thanks in advance.
Giovanni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2006 10:30 PM
10-30-2006 10:30 PM
Re: ssh without password
my doubt ...
I find the file known_hosts ONLY on .ssh directory of the server where I need to run the ssh command. Is it correct?
Bye.
Giovanni