Skip to content

Shortcuts as in .ssh/config #259

@bitprophet

Description

@bitprophet

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


Closed as Duplicate on 2010-11-17 at 07:09pm EST

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions