- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unattendes ssh
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
04-11-2002 07:11 AM
04-11-2002 07:11 AM
I've just installed openssh 3.1p1
I'm using ssh as a substitute of telnet, it works fine, but ...
Now, I need to use it like I'm ussing rcp and rsh (not restricted shell, r* command) :
machine1 # rsh machine2 ls -l
whithout giving password, using .rhosts file
machine1 # ssh machine2 ls -l
ask me for password ...
How can I do it?
Thanks in advance.
Rafa
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 07:25 AM
04-11-2002 07:25 AM
SolutionCheck out this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x319d8cc5e03fd6118fff0090279cd0f9,00.html
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 07:35 AM
04-11-2002 07:35 AM
Re: Unattendes ssh
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 08:04 AM
04-11-2002 08:04 AM
Re: Unattendes ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2002 08:10 AM
04-11-2002 08:10 AM
Re: Unattendes ssh
You need to generate your public/private key pair and copy the public key to the other system.
Before that you need to start sshd and if you haven't already done, use the following process to generate host key.
On system A have sshd runnign with the following procedure.
#/opt/openssh2/bin/ssh_keygen -t rsa1 -f /opt/openssh2/etc/ssh_host_key -N ""
#/opt/openssh2/bin/ssh_keygen -t rsa -f /opt/openssh2/etc/ssh_host_rsa_key -N ""
#/opt/openssh2/bin/ssh_keygen -t dsa -f /opt/openssh2/etc/ssh_host_dsa_key -N ""
Start sshd
#/opt/openssh2/sbin/sshd
Following the above procedure for system B if you want to do ssh from system A to system B.
Setup SSH-client on systemB
Generate public/private key pair on systemB
#/opt/openssh2/bin/ssh_keygen
(take the default file for the key and enter a passphrase here.. you need to remember)
#Now ftp $HOME/.ssh/identity.pub to systemA and append it to $HOME/.ssh/authorized_keys. If you don't have authorized_keys.
Now do ssh from systemB to systemA.
systemB#ssh systemA ls -al
Now this should ask for the passphrase that you typed in while creating the key. After typing in the passphrase, it should execute ls -al on system A.
However, here you still need to type the passphrase. There is a way to remember the passphrases in the memory. You need to use ssh-agent to remember the passphrases.
systemB#eval `/opt/openssh2/bin/ssh-agent -s` /opt/openssh2/bin/ssh-add
This will ask for the passphrase. Type in and it will be remembered.
systemB# ssh systemA ll
systemB# ssh systemA cat /etc/passwd
Repeat the same procedure on systemA if you need the otherway.
-Sri