Welcome to the SSH Utilities repository! This collection of scripts makes managing and interacting with remote servers a breeze. Whether you need to set up SSH access or mount a remote directory to your local machine, we've got you covered!
This repository contains two main scripts:
- mount-remote-path-to-local.sh: Mounts a remote server's file system onto your local machine using SSHFS.
- set-up-ssh-server.sh: Sets up SSH key-based authentication for a user on a specified host.
- Purpose: Easily mount a directory from a remote server to your local machine for file transfer and access.
- Usage:
./mount-remote-path-to-local.sh <USER_NAME> <SSH_HOST_NAME> <REMOTE_PATH>
- Requirements:
sshfs
andsshpass
must be installed on your local machine.
- Purpose: Automate the creation of SSH keys and establish key-based authentication for accessing a remote server.
- Usage:
./set-up-ssh-server.sh <USER_NAME> <PASSWORD> <SSH_KEY_NAME> <SSH_HOST_NAME>
- Requirements: Your local machine should have
ssh-keygen
,sshpass
, andssh-copy-id
available.
Clone this repository to your local machine using:
git clone https://github.com/urmzd/ssh-utils.git
cd src
Make sure to give the scripts execution permissions:
chmod +x mount-remote-path-to-local.sh set-up-ssh-server.sh
- Handle your credentials securely.
- It's recommended to understand the security implications involved in scripts that automate SSH authentication and mount remote filesystems.
If you have any feedback or suggestions, feel free to open an issue in the repository!
💖 Thank you for visiting our repository!