-
Notifications
You must be signed in to change notification settings - Fork 2k
Shortcuts as in .ssh/config #259
Copy link
Copy link
Closed
Labels
Description
Description
In some case we can't reach hosts directly and need several SSH connexions to reach them.
At Fabric side, hosts are seen as localhost on different ports : localhost:16102, localhost:16103 for example
I usually edit my ~/.ssh/config file to add meaningfull shorcuts :
Add this to your ~/.ssh/config file :
host saf1
Hostname localhost
Port 16102
host saf2
Hostname localhost
Port 16103
host sab1
Hostname localhost
Port 16104
host sab2
Hostname localhost
Port 16105
Fabric (or paramiko ?) does not seem to support the .ssh/config.
Is there an alternative way to set shortcuts (or alias) in Fabric to get meaningfull hostnames ?
Originally submitted by **** (PhE) on 2010-11-17 at 03:09pm EST
Relations
- Duplicates Make use of ssh_config where possible #3: Make use of ssh_config where possible
Closed as Duplicate on 2010-11-17 at 07:09pm EST
Reactions are currently unavailable