Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Latest commit

 

History

History
55 lines (34 loc) · 1.59 KB

File metadata and controls

55 lines (34 loc) · 1.59 KB

DEPRECATED

This script has been rewritten in JavaScript and has moved to https://github.com/nlemoine/transmit-2-ssh-config

Transmit favorites to SSH config

This little tool is born because I was bored to keep both my SSH config file and Transmit favorites in sync, filling twice the same informations over and over.

This script converts all your Transmit SFTP favorites into an SSH config file.

Usage

Download the script, give it execution rights and execute.

curl -O https://raw.githubusercontent.com/nlemoine/transmit-favorites-2-ssh-config/master/transmit-to-sshconfig.py
chmod +x transmit-to-sshconfig.py
./transmit-to-sshconfig.py

If you don't have an ssh config file, it will be created for you.

If you already have one, hosts from Transmit favorites will be appended to your existing file.

If host already exists, it will be skipped.

Notes

Only SFTP favorites are added to the SSH config file.

HostNames are slugified and formatted to play nice with the excellent Shuttle app.

In Transmit, let's say you have:

  • Company folder
    • Server 1
    • Server 2
  • Personal folder
    • Server 1
    • Server 2

These favorites will be converted to these HostNames:

  • company-folder/server-1
  • company-folder/server-2
  • personal-folder/server-1
  • personal-folder/server-2

And will appear as shown above in Shuttle:

Transmit SFTP favorites SSH config

Support

This is my first python script, feel free to fork it and make it better.