Skip to content

lradaelli85/ssh-connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ssh-connect

This script allows you to connect to the mostly used ssh server,reading their informations from a configuration file.

I added a script that builds the configuration file automatically,the default file will'be called $HOME/.ip_ssh.

The connection script read from that file and will prompt you to choice which server you have to connect to.

Is not mandatory to use the build_file_conn.sh to create the configuration file,below an example

Examples

Configuration file example

#ip/fqdn |name|user|port|ssh-key

10.4.0.82|test|root|22
50.4.0.2|test1|luca|23
192.168.1.1|test2|test|24
252.1.1.1|test|test|22
1.2.0.4|test|test|22
mail.debian.local|test|test|22|/home/luca/.ssh/my-ssh-key

Add a host using the script

luca@linux:~$ ./build_file_conn.sh 10.1.1.1 SSH-Server root 22

luca@linux:~$ cat $HOME/.ip_ssh
10.4.0.82|test|root|22
50.4.0.2|test1|luca|23
192.168.1.1|test2|test|24
256.1.1.1|test|test|22
1.2.0.4|test|test|22
mail.debian.local|test|test|22
10.1.1.1|SSH-Server|root|22

Connecting to a server

luca@linux:~$ ./ssh_connect.sh
0) 10.20.20.1 --> KVM
1) 192.168.1.50 --> OSMC
2) 192.168.1.1 --> Web-server
3) vpn.example.com --> AWS
choose the system ID you want to connect to: 0
[email protected]'s password:

About

Little script to store and use your SSH connection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages