shell-scripte-code/shellinabox_sshwrapper.sh
2016-12-15 15:38:19 +01:00

9 lines
257 B
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 
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;