Commit b1c40120 by César Galvis

Revert "refactor: deleted bash scripts"

This reverts commit da3132d6.
parent f3b58124
#!/bin/bash
# Connect to SSH server using HTTP proxy
# Proxy server data
PROXY_SERVER=windows-vpn
PROXY_PORT=3128
# SSH server data
SSH_SERVER=domain.com
SSH_USER=user
SSH_PORT=22
## Make a "ssh-data.txt" file with the plain text password in the first line
SSH_DATA=ssh-data.txt
# Connect to SSH server with proxy
sshpass -f$SSH_DATA ssh -o ProxyCommand="corkscrew $PROXY_SERVER $PROXY_PORT %h %p" -o PreferredAuthentications=password -o PubkeyAuthentication=no -p "$SSH_PORT" "$SSH_USER@$SSH_SERVER"
\ No newline at end of file
#!/bin/bash
# Connect to SSH server using HTTP proxy
# Proxy server data
PROXY_SERVER=windows-vpn
PROXY_PORT=3128
# SSH server data
SSH_SERVER=domain.com
SSH_USER=user
SSH_PORT=22
SSH_PRIVATE_KEY=key
# Connect to SSH server with proxy
ssh -o ProxyCommand="corkscrew $PROXY_SERVER $PROXY_PORT %h %p" -i "$SSH_PRIVATE_KEY" -p "$SSH_PORT" "$SSH_USER@$SSH_SERVER"
\ No newline at end of file
#!/bin/bash
# Generate SSH tunnel using HTTP proxy
# Proxy server data
PROXY_SERVER=windows-vpn
PROXY_PORT=3128
# SSH server data
SSH_SERVER=domain.com
SSH_USER=user
SSH_PORT=22
SSH_TUNNEL_LOCAL_PORT=80
SSH_TUNNEL_REMOTE_PORT=80
## Make a "ssh-data.txt" file with the plain text password in the first line
SSH_DATA=ssh-data.txt
# Make SSH tunnel with proxy
sshpass -f$SSH_DATA ssh -o ProxyCommand="corkscrew $PROXY_SERVER $PROXY_PORT %h %p" -o PreferredAuthentications=password -o PubkeyAuthentication=no -NL $SSH_TUNNEL_LOCAL_PORT:localhost:$SSH_TUNNEL_REMOTE_PORT -p "$SSH_PORT" $SSH_USER@$SSH_SERVER
\ No newline at end of file
#!/bin/bash
# Generate SSH tunnel using HTTP proxy
# Proxy server data
PROXY_SERVER=windows-vpn
PROXY_PORT=3128
# SSH server data
SSH_SERVER=domain.com
SSH_USER=user
SSH_PORT=22
SSH_TUNNEL_LOCAL_PORT=80
SSH_TUNNEL_REMOTE_PORT=80
SSH_PRIVATE_KEY=key
# Make SSH tunnel with proxy
ssh -o ProxyCommand="corkscrew $PROXY_SERVER $PROXY_PORT %h %p" -i "$SSH_PRIVATE_KEY" -NL $SSH_TUNNEL_LOCAL_PORT:localhost:$SSH_TUNNEL_REMOTE_PORT -p "$SSH_PORT" $SSH_USER@$SSH_SERVER
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment