Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/psylinux/auto-ssh
This script will mount a remote file system using ssh and will open a ssh session with X11 Forward activated. You must set the Environment Variables first in order to use this script.
https://github.com/psylinux/auto-ssh
Last synced: 9 days ago
JSON representation
This script will mount a remote file system using ssh and will open a ssh session with X11 Forward activated. You must set the Environment Variables first in order to use this script.
- Host: GitHub
- URL: https://github.com/psylinux/auto-ssh
- Owner: psylinux
- License: gpl-3.0
- Created: 2016-09-17T05:51:51.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-12-24T12:21:34.000Z (almost 4 years ago)
- Last Synced: 2024-08-01T13:38:27.218Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# auto-ssh.sh
This script will mount a auto file system using ssh and will open a ssh session with X11 Forward activated.
You must set the Environment Variables first in order to use this script.## How to Install
git clone https://github.com/psylinux/auto-ssh.git
## Edit auto_ssh.sh and Set environment variables
- Your RSA private key: RSA_KEY="/home/user/.ssh/id_rsa"
- The mount point you like: MNT_POINT="/home/user/mount_here"
- Remote IP or domain (FQDN): REMOTE_IP="domain.com"
- Remote user to connect through ssh: REMOTE_USER="root"
- Remote directory to mount: REMOTE_DIR="/root"
- SSH Port (Default: 22): REMOTE_SSH_PORT="22"## How to use
```sh
$ cd auto-ssh/
$ chmod +x auto-ssh.sh
$ ./auto-ssh.sh
```## ToDo
- Capability to pass args in the command line.
- If no args are passed, such as REMOTE_SSH_PORT, REMOTE_USER and REMOTE_DIR then keep the default values.