How to make ssh receive the password from stdin

based on this post you can do: Create a command which open a ssh session using SSH_ASKPASS (seek SSH_ASKPASS on man ssh) $ cat > ssh_session <<EOF export SSH_ASKPASS=”/path/to/script_returning_pass” setsid ssh “your_user”@”your_host” EOF NOTE: To avoid ssh to try to ask on tty we use setsid Create a script which returns your password (note echo … Read more

PuTTY configuration equivalent to OpenSSH ProxyCommand

If you want to “jump a host”, then using “local proxy command” is an overkill. Recent versions of PuTTY have this build-in. Go to Connection > Proxy, and in “Proxy type”, select “SSH to proxy and use port forwarding”. Then specify the details of the intermediate server below (like Hostname, Port, Username, Password [or load … Read more

ansible SSH connection fail

You need to change the ansible_ssh_pass as well or ssh key, for example I am using this in my inventory file: 192.168.33.100 ansible_ssh_pass=vagrant ansible_ssh_user=vagrant After that I can connect to the remote host: ansible all -i tests -m ping With the following result: 192.168.33.100 | SUCCESS => { “changed”: false, “ping”: “pong” } Hope that … Read more

Error connecting to agent: no such file or directory – adding key to ssh agent [closed]

VonC is probably right, in that you need to fix your path, but I was facing the same problem despite using the correct one. In my case, I needed to start ssh-agent for the command to work. Running the sample commands from GitHub was not working, but, since I had installed OpenSSH, I simply started … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)