My problem:
I’m connected via ssh to a server and it asks my password only the first time.
After it, it never ask me again. That’s problematic for me in terms of security.
What I need is a command / tool to make password asking be recurrent.
What I did:
I tried sshpass --help
but the only available flags are
usefull to set a password, or at least for my understanding level.
Here you have the result of sshpass --help
:
[user@hostname ~]$ sshpass --help
sshpass: invalid option -- '-'
Usage: sshpass [-f|-d|-p|-e] [-hV] command parameters
-f filename Take password to use from file
-d number Use number as file descriptor for getting password
-p password Provide password as argument (security unwise)
-e Password is passed as env-var "SSHPASS"
With no parameters - password will be taken from stdin
-P prompt Which string should sshpass search for to detect a password prompt
-v Be verbose about what you're doing
-h Show help (this screen)
-V Print version information
At most one of -f, -d, -p or -e should be used
Could you help me please ?
aitorniz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1