1.0.3 • Published 9 years ago

ssh-known-to-config v1.0.3

Weekly downloads
1
License
ISC
Repository
-
Last release
9 years ago

ssh-known-to-config

Simple utility to convert unhashed known_hosts into an ssh_config file. Generates a Host entry with the Port. Install this globally and you'll have access to the ssh-known-to-config command anywhere on your system.

npm install -g ssh-known-to-config
ssh-known-to-config ~/.ssh/known_hosts

It will take something like the following in your known_hosts...

[10.1.1.4]:666 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwZXj0M...
10.1.1.11 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDipsxRXOi+SuFgX...

And output something like this...

Host 10.1.1.11
	Port 22
Host 10.1.1.4
	Port 666
1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago