SSHLogin is a small script that is designed to facilitate SSH login to remote hosts via a YAML file. If the SSH login is set up via SSH keys, it can be more efficient to search for the connection each time and enter it into the terminal.
To transfer X sessions over the SSH connection, the X option can be activated in the YAML file.
- Python 3.x
- python3-yaml
To run the program, the following Python modules are installed with apt install to make them available system-wide for a cron job:
apt-get update
apt install python3 python3-yamlClone the project onto your Linux system
git clone https://github.com/itlinuxmaker/remoteLogin.git Change to the project directory and follow these steps:
- Navigate to the remoteLogin directory:
cd remoteLogin/src/
- Create the configuration directory:
mkdir -p ~/Logins - Copy the configuration and script files to their locations:
cp ssh_login.yaml ~/Logins
cp remoteLogin.py /usr/local/bin/
- Edit the YAML configuration file to fit your ssh connections with your preferred text editor (vi, emacs, nano, etc.):
vi ~/Logins/ssh_login.yaml
The program is licensed under the GNU General Public License v3.0 or later in 2024.
IN NO EVENT WILL I BE LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, THOSE RESULTING FROM LOST PROFITS, LOST DATA, LOST REVENUE OR BUSINESS INTERRUPTION) ARISING OUT OF THE USE, INABILITY TO USE, OR THE RESULTS OF USE OF, THIS PROGRAM. WITHOUT LIMITING THE FOREGOING, I SHALL NOT BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES THAT MAY RESULT FROM THE USE OF THIS SCRIPT OR ANY PORTION THEREOF WHETHER ARISING UNDER CONTRACT, NEGLIGENCE, TORT OR ANY OTHER LAW OR CAUSE OF ACTION. I WILL ALSO PROVIDE NO SUPPORT WHATSOEVER, OTHER THAN ACCEPTING FIXES AND UPDATING THE SCRIPT AS IS DEEMED NECESSARY.