Created
April 1, 2019 09:15
-
-
Save dgpro/227ab0df3b1905498e4baa84585fece5 to your computer and use it in GitHub Desktop.
SSH Script to connect to remote SFTP server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# exit if any of the commands fail | |
set -e | |
source ${BASH_SOURCE[0]%/*}/ip.conf | |
echo -e "Connecting to ip:$ip"; | |
sftp username@$ip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment