shuttle icon indicating copy to clipboard operation
shuttle copied to clipboard

Is it possible to import ~/.ssh/config

Open uhlhosting opened this issue 5 years ago • 4 comments

Why not allow users to parse the content of config for shuttle? I have in config like 20 servers over the years I use. And to migrate them all into shuttle would be amazing.

uhlhosting avatar Mar 06 '19 00:03 uhlhosting

It should work out of the box. Doesn't it?

julien-c avatar Mar 06 '19 01:03 julien-c

in that case I'm confused. when I meant importing, is to allow me to see the current servers in config in shuttle, no can't find this in shuttle. I can import/edit and export

if I import config file I get error parsing config file.

uhlhosting avatar Mar 06 '19 11:03 uhlhosting

Hi @uhlhosting From: https://github.com/fitztrev/shuttle/wiki/Global-Settings#show_ssh_config_hosts-value

Here are the settings for reading your ssh config file. There should be nothing to import as shuttle reads the SSH config file. Maybe you have show_ssh_config_hosts to false?

"show_ssh_config_hosts": VALUE, This changes parsing ssh config. By default, Shuttle will parse your ~/.ssh/config file for hosts. (Global Setting)

Possible values are false or true

"ssh_config_ignore_hosts": ["VALUE", "VALUE"], This will ignore hosts in the ssh config. (Global Setting)

Possible values are the hosts in your config that you want to ignore. If you had github.com and git.example.com in your ssh config, to ignore them you set:

"ssh_config_ignore_hosts": ["github.com", "git.example.com"],

"ssh_config_ignore_keywords": ["VALUE"], This will ignore keywords in your ssh config. (Global Setting)

Possible values are the keywords in your ssh config that you want to ignore.

thshdw avatar Mar 06 '19 19:03 thshdw

@thshdw , I have show_ssh_config_hosts to true, but it does not help

KaymeKaydex avatar Jan 02 '23 00:01 KaymeKaydex