Skip to content

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.

License

Notifications You must be signed in to change notification settings

psylinux/auto-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

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

$ 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.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages