Skip to content

This script was made for the ARM- Server of the TU Darmstadt, but is now modified for other SSH- Servers

License

Notifications You must be signed in to change notification settings

Synix4Life/Openssh-auto-connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSH- Server connection automation

Version Language License


Explanation

This is a shell- script for linux, which was created to automate the process of connecting to an SSH- Server.

The script was initially created to connect to the ARM- SSH- Server of the TU Darmstadt, but is now modified to be used with other SSH- Servers.

The script is designed to use a public and a private key, generated with putty, to authenticate yourself. But in Version 2.2.0, a version was added to make a Unix- only key authentication.


How to use

General

To use this implementation, just run the script. However, you need to provide youre username and the SSH- Servers address with the corresponding flags.

./openssh_autoconnect.sh -u yourUsername -l SSH-link

If a key is needed as well, you need to use the -k flag. The script supports a cross- plattform key in the form of .pem- files and unix- only form.

./openssh_autoconnect.sh -k -u yourUsername -l SSH-link

If not key is specified, the program will look for a key in your directory

Cross- Plattform

You can also specify the .ppk or .pem key you want to be used. Just type the corresponding flag (-ppk/ -pem) followed by the file- name of the key.

./openssh_autoconnect.sh -k -u yourUsername -l SSH-link -pem Key.pem

If you haven't yet made the connection, just use the -new flag

./openssh_autoconnect.sh -k -new -u yourUsername -l SSH-link -pem TheKey.pem

Unix- only

You can specify the key- path for Unix- only initialization using the -unixkey flag, combined with unix

./openssh_autoconnect.sh -k -unix -unixkey pathToKey -u yourUsername -l SSH-link

General Options

The -k flag is only for setting up the key. If all keys are already created and you just want to initialize the connection, you can remove the -new flag.

Other options are the --help and --v/ --version flags to show the corresponding man- page from the program.


Can't run script?

If you can't run the script, try

chmod +x openssh_autoconnect.sh

Further Information

If you have any questions or ideas to improve the script, feel free to change them or contact me about it

About

This script was made for the ARM- Server of the TU Darmstadt, but is now modified for other SSH- Servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages