Every time I try to connect my Linux server via SSH, it asks me for my password. I’m using Ubuntu server 18.04
How do I do something to get the system to remember the password or just be in line of an Bash script to connect to the server server?
example of what happens to me:
ssh root@$ip
root@xxx.xxx.xxx.xxx's password:
I did everything to don’t ask me again for password, but I failed.
I’m already using a Bash script like this:
echo PASSWORD
ssh root@xxx.xxx.xxx.xxx
Then I copy and paste password into password field. But this doesn’t work.
Command 'sshpass' not found, but can be installed with:
apt install sshpass
root@localhost:~# apt install sshpass Reading package lists... Done Building dependency tree
– Ali emaditaj Oct 30 '20 at 03:28Reading state information... Done E: Unable to locate package sshpass
sshpassis the solution. Figure out how to get it installed on your system and you are solid. – Giacomo1968 Oct 30 '20 at 03:51