- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ssh problem
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
12-02-2009 08:51 PM
12-02-2009 08:51 PM
I want to use the ssh login to a system without the passwd reading from the stdin,
For example, store password somewhere for ssh to get it or use environment variable.
I just want to use passwd to login, but without pass passwd or expect scripts,
so is there any method can work out?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2009 09:33 PM
12-02-2009 09:33 PM
Re: ssh problem
Why? With SSH, it's possible to use public
key authorization without using a password.
A Forum seatch for keywords like, say:
ssh publickey
or:
ssh public key
should find very many old threads on this
topic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2009 09:38 PM
12-02-2009 09:38 PM
Re: ssh problem
I know that the ssh can use the public key to do the authentication , but I just want to
use the passwd to login without pass the passwd.
I think the method i uesd is a strange method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2009 10:06 PM
12-02-2009 10:06 PM
Re: ssh problem
> login without pass the passwd.
If you can explain that so that it makes some
sense, then please do so.
You want to use the password to log in, but
you don't want to send the password to the
remote system? Does the remote system have
ESP?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2009 10:51 PM
12-02-2009 10:51 PM
Re: ssh problem
Is there any method that the ssh can get
passwd from file or use pipe passing the passwd to the ssh?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2009 11:08 PM
12-02-2009 11:08 PM
Re: ssh problem
Do you how to use SSH_ASKPASS with ssh?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2009 08:22 AM
12-04-2009 08:22 AM
Solutioncat mypass |xargs -i ssh host1 <{}
where you'd use some means of redirecting the contents of 'mypass', which stores your password into the command 'ssh host1' -
My guess, this is impossible, as I've tried, and had no success. Really, it kinda defeats the purpose of "Secure Shell" - and storing the password in a file is horribly insecure, yes? Nonetheless, I'd love to know if there's a way to do it!
Thanks!
Russ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2009 09:28 AM
12-04-2009 09:28 AM
Re: ssh problem
I haven't, but if I had, I'd've assumed that
"expect" would do the job. Perhaps a Forum
search for keywords like, say:
ssh expect
would find something useful.
> Really, it kinda defeats the purpose of
> "Secure Shell" [...]
Sure seems to.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2009 10:03 PM
12-06-2009 10:03 PM
Re: ssh problem
What I want to do is just what you said.
Is there a way for ssh to get passwd not from the stdin but from a file or somethin else which contain the password.
I think the method is an odd way of ssh.
So we can discuss here about the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2009 10:05 PM
12-06-2009 10:05 PM
Re: ssh problem
I known that the expect script can reslove this problem of send the password to the ssh
automatic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2009 09:09 AM
12-07-2009 09:09 AM
Re: ssh problem
The 'expect' script? What is that? It's not an hpux or ksh command...
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2009 10:31 AM
12-07-2009 10:31 AM
Re: ssh problem
This is done intentionally to discourage users from writing scripts with embedded passwords. Accepting the password from an environment variable is not implemented, for the exact same reason.
This mechanism is not perfect: it can be bypassed with a bit of effort, but it is intended to make the user think about finding a better (hopefully more secure) way to solve his/her access or automation problem.
With password authentication, an unauthorized person needs only to read the script once, and then s/he can make unauthorized connections from any location that otherwise allows connections to the target system.
With SSH keys, you can place restrictions on keys at the server side, so that a particular key is accepted only if the connection comes from an IP address that is specifically listed as trusted for that key.
It is even possible to allow/force a certain key to always run one particular command only, so that even if the private key has been compromised, the server admin knows that the worst thing the intruder can do with the key is to keep doing what the legitimate user normally does.
For more information, type "man sshd" on your system and read the chapter titled "AUTHORIZED_KEYS FILE FORMAT".
Of course the SSH keys can be misused, just like anything else. But with SSH keys, at least you have a tool that allows you to achieve markedly better security with just a little bit of extra effort.
If your system is subject to security audits, you should always document your embedded passwords and other well-known security risks in advance. You should also document the technical reasons why the known-risky solution was chosen: "I did not want to use SSH keys" is not going to be an acceptable justification.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2009 10:36 AM
12-07-2009 10:36 AM
Re: ssh problem
Preaching to the chior, but I wasn't sure if there might not be a way to get around this. Assuming there's no way to get passwd or ssh to accept redirected output, then the discussion is closed as far as I'm concerned...
Thanks,
Russ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2009 01:35 PM
12-07-2009 01:35 PM
Re: ssh problem
> an hpux or ksh command...
> [...] Perhaps a Forum
> search for keywords like, say:
> ssh expect
> would find something useful.
> Assuming there's no way [...]
That's one approach. Looking around is
another.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2009 05:57 PM
12-07-2009 05:57 PM
Re: ssh problem
ok, maybe there is no method to work aroud this issue. I have try many ways try using ssh to read from the stdin ,but it seems that all the ways are failed.
So could you share with us , if you find a way to resolve this issue in the future?
I will also concern with this issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2009 06:17 PM
12-07-2009 06:17 PM
Re: ssh problem
I think I will open this issue for discuss.
Thanks for all of you discuss about is!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2009 08:22 PM
12-07-2009 08:22 PM
Re: ssh problem
Was "expect" in any of those (unspecified)
ways?
> I known that the expect script can reslove
> this problem of send the password to the
> ssh automatic.
What did that mean?