shell-scripte-code/shellinabox_sshwrapper.sh

10 lines
257 B
Bash
Raw Normal View History

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;
#
read -p "SSH remote port [22]: " port;
#
read -p "SSH remote username: " username;
#
exec ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $port $username@$host;