- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- connect to a remote system
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-27-2003 05:21 AM
10-27-2003 05:21 AM
I am writing a script which needs connecting to a remote system. I want the username and the password to be supplied in the command line. I cannot use rlogin because i do not have permissions for .rhosts in both the servers. Is there any other way in which this can be achieved.
Thanks,
Andy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 05:37 AM
10-27-2003 05:37 AM
SolutionSecureshell will do the job. An admin will have to install it for you.
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA
ssh replaces rlogin/telnet
sftp replaces ftp
scp replaces rcp
You can even exchange public keys between servers and do it without password.
See attached document.
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-27-2003 05:38 AM
10-27-2003 05:38 AM
Re: connect to a remote system
-------------
#!/usr/bin/expect
set args [llength $argv]
set system [lindex $argv 0]
set login [lindex $argv 1]
set password [lindex $argv 2]
expect "login"
send "$login\r"
expect "password"
send "$password\r"
interact
------------------
The start using it like
logon aurora myaccount mypasswd
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 05:52 AM
10-27-2003 05:52 AM
Re: connect to a remote system
Investigate remesh as well.
Best regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 06:18 AM
10-27-2003 06:18 AM
Re: connect to a remote system
SecureShell is your best bet as it negates the transmission of cleartext and encrypts your data stream. Plus with keys - you can initiate interserver commnunications without supplying a password.
.
It is now becoming a standard that FTP and telnet/rlogin be "outlawed" in favor of SSH tools (ssh, sftp, scp, etc...).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 10:07 PM
10-27-2003 10:07 PM
Re: connect to a remote system
or ${machine} -l ${username} "${command}"