GreenLake Administration
Operating System - HP-UX
1846808
Members
3227
Online
110256
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-16-2004 02:45 AM
06-16-2004 02:45 AM
SSH
Hi Everyone
i am using ssh to login to a remote machine.
ssh -l login host
is there any way i can put my password in same command line.
ssh -l login host ? password
Thanks
i am using ssh to login to a remote machine.
ssh -l login host
is there any way i can put my password in same command line.
ssh -l login host ? password
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 02:51 AM
06-16-2004 02:51 AM
Re: SSH
You would have to use expect for that...
http://hpux.ee.ualberta.ca/hppd/hpux/Tcl/expect-5.41/
or setup shared keys....
Rgds...Geoff
http://hpux.ee.ualberta.ca/hppd/hpux/Tcl/expect-5.41/
or setup shared keys....
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 03:20 AM
06-16-2004 03:20 AM
Re: SSH
You can setup password free ssh/scp/sftp login.
Procedure attached.
SEP
Procedure attached.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
06-16-2004 03:51 AM
06-16-2004 03:51 AM
Re: SSH
Hi,
YOu would need to setup public/private authentication with the remote server so you don't have to specify the password. It's simple. Do
$ssh-keygen -t dsa -N ""
sftp the id_dsa.pub file to the remote server (hostB) and put it in the destination home directory as authorized_keys .ssh directory there. If authorized_keys file already exists, then append this file to it. Once it is done then try
ssh hostB
It shouldn't prompt you for the password. This isn't a full secured mode of operation as you are not specifying a passphrase with -N. But it's better than your intention of giving your password in the command line.
SSH is strict in checking permissions. So, you will need to ensure the permissions on the home directory are atleast 755 and .ssh inside it are 600 on the destination system.
-Sri
YOu would need to setup public/private authentication with the remote server so you don't have to specify the password. It's simple. Do
$ssh-keygen -t dsa -N ""
sftp the id_dsa.pub file to the remote server (hostB) and put it in the destination home directory as authorized_keys .ssh directory there. If authorized_keys file already exists, then append this file to it. Once it is done then try
ssh hostB
It shouldn't prompt you for the password. This isn't a full secured mode of operation as you are not specifying a passphrase with -N. But it's better than your intention of giving your password in the command line.
SSH is strict in checking permissions. So, you will need to ensure the permissions on the home directory are atleast 755 and .ssh inside it are 600 on the destination system.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP