add ssh script
This commit is contained in:
3
scripts/ssh.sh
Normal file
3
scripts/ssh.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
sshpass -p "$SERVER_PASSWORD" \
|
||||||
|
ssh -t $SERVER_USER@$SERVER_HOST \
|
||||||
|
"cd $SERVER_PATH && exec \$SHELL"
|
||||||
@@ -121,7 +121,7 @@ echo "{
|
|||||||
echo -e "${GREEN}.vscode/sftp.json created successfully${NC}"
|
echo -e "${GREEN}.vscode/sftp.json created successfully${NC}"
|
||||||
|
|
||||||
# Go through scripts, add variables and add them to project folder
|
# Go through scripts, add variables and add them to project folder
|
||||||
scripts=("watch-build.sh" "local-remote.sh" "remote-local.sh" "sftp-watch.sh")
|
scripts=("watch-build.sh" "local-remote.sh" "remote-local.sh" "sftp-watch.sh" "ssh.sh")
|
||||||
|
|
||||||
for script in "${scripts[@]}"; do
|
for script in "${scripts[@]}"; do
|
||||||
# Add variables to script
|
# Add variables to script
|
||||||
|
|||||||
Reference in New Issue
Block a user