2016-12-15 14:37:59 +01:00
|
|
|
|
#!/bin/bash
|
2016-12-15 15:37:51 +01:00
|
|
|
|
#
|
2016-12-15 14:37:59 +01:00
|
|
|
|
read -p "SSH remote host (hostname or ip address): " host;
|
|
|
|
|
#
|
2016-12-15 15:38:19 +01:00
|
|
|
|
read -p "SSH remote port (22): " port;
|
2016-12-15 14:37:59 +01:00
|
|
|
|
#
|
|
|
|
|
read -p "SSH remote username: " username;
|
|
|
|
|
#
|
|
|
|
|
exec ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $port $username@$host;
|