Re: [Suspected Spam]any way to provide the ssh password from a file ?

Does this mean...

1> export SSH_AKSPASS=/myprograms/get_passwd

2 > # /myprograms/get_passwd script produces the passwd

3> ssh <hostname>


1> mv /usr/bin/ssh-askpass /usr/bin/ssh-askpass.bak
2> # /myprograms/get_passwd script produces the passwd
3> ln -s /myprograms/get_passwd /usr/bin/ssh-askpass
4> ssh <hostname>

Both of these are not working for me


Silamael wrote:
On 12/06/2009 07:37 AM, J. Bakshi wrote:
Hello list,

Is there any way to provide the ssh password from a file ? There is password less login option with the help of public/private key combination. But I like to have the password less login by providing the key from a file. Is it possible ? My version of ssh is "OpenSSH_5.1p1 Debian-8 OpenSSL 0.9.8k 25 Mar 2009"
Please let me know.

Hello there,

You can build something using the SSH_ASKPASS environment variable to
get ssh calling the programm given in this variable for fetching the
password. Small shell script would be enough.

-- Matthias

Relevant Pages

  • Re: ssh and dhcp interactions?
    ... | with that name is it gonna complain? ... SSH has to take into consideration that a hostname can have multiple IP ... you will obviously have to change what you refer to. ...
  • Re: Network Question
    ... They usually allow one to specify fixed IP and hostname for the DHCP clients based on the MAC addresses. ... ssh: Could not resolve hostname hostname nor servname ... I think the problem here lies with the /etc/hosts file where machine1 and ... For many years I have 8 Freebsd boxes behind a PF firewall on a static labeled lan. ...
  • Re: Run a script across servers
    ... > doesn't work the way you thought it would in your test script is because ... > each command is spawned off separately. ... > finishes, then ssh will run. ...
  • Re: Kerberos auth based on ticket
    ... Ok, using the correct hostname, the same thing happens: ... **Trying to log in with a valid ticket, ... $ ssh mrowley@`hostname` ... GSSAPIAuthentication yes ...
  • Re: cant connect with putty
    ... >> b) with ssh IPaddress ... >> if yes to b and d, but not to a and c, then it's a DNS thing. ... But ping by hostname is fine and the browser works fine by hostname, ... to it and can't (in my experience only slow connections, ...