Install the OpenSSL on Debian based systems
sudo apt-get install openssl| #!/bin/bash | |
| # Assumes SSH is setup already with publickey authentication, i.e. | |
| # PubkeyAuthentication yes | |
| # PasswordAuthentication no | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run with sudo" | |
| exit | |
| fi |
| STEPS to CREATE sftp | |
| # generate key | |
| ssh-keygen | |
| #Configure an SSH/SFTP User for Your Key | |
| #add public key in below path | |
| .ssh/authorized_keys | |
| To Create a SFTP server for user to login and access particular folder |