https://github.com/danieldacosta/ssh-script
Shell script for multiple port-forwarding connections
https://github.com/danieldacosta/ssh-script
port-forwarding ssh
Last synced: 11 months ago
JSON representation
Shell script for multiple port-forwarding connections
- Host: GitHub
- URL: https://github.com/danieldacosta/ssh-script
- Owner: DanielDaCosta
- Created: 2021-08-18T13:11:02.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-01T16:23:46.000Z (over 4 years ago)
- Last Synced: 2025-06-02T01:42:22.402Z (about 1 year ago)
- Topics: port-forwarding, ssh
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Port-Forwarding bash script
Shell script for multiple port-forwarding connections.
# Pre-requisites
First you will have to configure the `config` inside the folder `.ssh/`:
```
Host {HOST_NAME}
Hostname {HOST_IP}
User {User}
IdentityFile ~/.ssh/{YOUR_SSH_KEY}
```
# Usage
```
./ssh.sh
Output:
1) RemoteServer1 2) RemoteServer2 3) RemoteServer3 4) RemoteServer4
Type your response:
1
Output:
RemoteServer1 Open
```