Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading from ~/.ssh/config file for connection information #5

Closed
thornycrackers opened this issue Apr 5, 2018 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@thornycrackers
Copy link

Hello! First off this is super cool so thanks for putting the effort in to make something like this. It's nice to have a standalone binary for managing server keys.

The issue that I'm running into is that for syncing multiple hosts, of which there may be different users, ssh-permit starts to break down. For example if I have 5 servers and each one has a different user then when I go to sync I have to manually type in each user for each server plus hit enter a bunch of times to confirm private key, passphrase, as well as the authorized key files. I've also noticed that adding a host with the same name as a ssh host in my config file is not respected by ssh-permit.

For example if I have the following in my ~/.ssh/config

Host myserver
    ForwardAgent yes
    HostName 192.123.123.123
    Port 12345
    User myuser

Then when want to access this host I can use ssh myserver. With the advent of having host aliases per host I think it would it would save you having to store more connection information if you have ssh-permit use the host alias to check inside the ~/.ssh/config file. If it does find an entry it could skip asking the questions per host and that way managing multiple servers could really be just running the sync command and maybe having a way to say 'yes' to all.

@ierror ierror added the enhancement New feature or request label Apr 6, 2018
ierror added a commit that referenced this issue Apr 14, 2018
@ierror
Copy link
Owner

ierror commented Aug 18, 2018

just releases v0.2.0 with SSH Config support - give it a try and let me know if it works for you

@ierror ierror closed this as completed Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants