Answer the question
In order to leave comments, you need to log in
How to make a shortcut to connect ssh with a password?
I searched on Google, I tried it myself, but sh did not start
Answer the question
In order to leave comments, you need to log in
there is a sshpass utility, example:
carefully, they write that at least sshpass is trying to hide the password on this machine from other users, you can still somehow pull it out of the command line
, you can use the -f key, then the password will be taken from the file, the rights to which should be configured only for the current user
ps I strongly recommend setting up passwordless authorization based on rsa / dsa asymmetric encryption, it's a couple of manual steps, but there will be no problems (sshpass will almost certainly have problems with redirecting streams to ssh)
sshpass -p "password" ssh [email protected]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question