First:
apt-get install sshpass
touch ssh_server.sh
vi ssh_server.sh
if is default port:
sshpass -p "YOURPASS" ssh -o StrictHostKeyChecking=no <YOUR_USER>@<YOUR_IP>
if is necessary set especif port:
sshpass -p "YOURPASS" ssh -o StrictHostKeyChecking=no <YOUR_USER>@<YOUR_IP> -p<YOUR_PORT>
Nenhum comentário:
Postar um comentário