- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- using ssh instead of remsh
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
Discussions
Discussions
Forums
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
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
тАО07-16-2003 03:23 AM
тАО07-16-2003 03:23 AM
I know I can use remsh into script to do this (setting .rhosts) but it is possible to use instead of remsh ssh?
Thank You
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2003 03:32 AM
тАО07-16-2003 03:32 AM
Re: using ssh instead of remsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2003 03:35 AM
тАО07-16-2003 03:35 AM
Re: using ssh instead of remsh
A way like:
ssh -l user host <
EOT
doesn't work because I'm prompted to insert password and "password" into script is take like a command to esecute after login...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2003 03:36 AM
тАО07-16-2003 03:36 AM
Solutionhttp://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/openssh-3.6.1p1/
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2003 04:41 AM
тАО07-16-2003 04:41 AM
Re: using ssh instead of remsh
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4c550ea029a2d711abdc0090277a778c,00.html
Regards,
Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2003 05:29 AM
тАО07-16-2003 05:29 AM
Re: using ssh instead of remsh
To have password free connections and commands and copying under Secure Shell, follow the attached document.
Cheers. Its nice to see people wanting to stop the use of old, insecure protocols. Perhaps someday Ignite will use Secure Shell/ssh.....
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
тАО07-16-2003 05:53 AM
тАО07-16-2003 05:53 AM
Re: using ssh instead of remsh
You can do a man on ssh for more options and details. You can do this becuase we do it here not only between HP-UX machines but between HP-UX machines and NT,Windows 2K, Linux machines.
You also get scp instead of rcp and sftp instead of ftp if you want to use them. All encrypted not plain text.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2003 10:24 PM
тАО07-16-2003 10:24 PM
Re: using ssh instead of remsh
ssh -l user host command
The best solution is to copy your script to the remote host, test it locally, then call it as:
ssh -l user host "script > logfile"
In that way you have the minimum possible interaction over the network, and shold not be caught-out by unexpected user-prompts etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2003 10:15 AM
тАО07-17-2003 10:15 AM
Re: using ssh instead of remsh
One cavaet: Anyone who can read the contents of the private key file ONCE can copy it and save it for later (illicit use). You won't necessarily know it has been copied, and changing/adding a passphrase at a later time won't help. You will have to generate and install a new key -- but this isn't hard. In fact, it is prudent to regularly replace and discard such keys (between 1/month and 1/year minimum).
However, you can reduce the danger:
A little known feature of sshd is that you can place restrictions on a particular key in the $HOME/.ssh/.authorized_keys file (this is for OpenSSH). These can require connections come "from" a particular IP address, restrict it to a particular "command" (which you probably want), limit X11, port, and agent forwarding, etc. These are put at the beginning of the line. See the manual page for sshd(8).
I recommend that any private key w/o a passphrase use at least the "command" restriction. If you need multiple commands to run against the same account you can generate multiple keys (1 per command).
-Scott-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2003 01:38 PM
тАО07-17-2003 01:38 PM
Re: using ssh instead of remsh
Yes you can, ssh is use the same parameters
that the remsh use.
So no problem tp replace, all you need is to
install the SSH pack.
Caesar