Skip to content

Commit c4461ea

Browse files
World wide web
1 parent 5e9b6a2 commit c4461ea

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

0x10-https_ssl/0-world_wide_web

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
# transfer file to our remote server
3+
4+
if [ $# -lt 3 ]
5+
then
6+
echo "Usage: 0-transfer_file PATH_TO_FILE IP USERNAME PATH_TO_SSH_KEY"
7+
else
8+
if [ $# -eq 4 ]
9+
then
10+
scp -o StrictHostKeyChecking=no -i "$4" "$1" "$3"@"$2":~/
11+
else
12+
scp -o StrictHostKeyChecking=no "$1" "$3"@"$2":~/
13+
fi;
14+
fi;

0 commit comments

Comments
 (0)