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

Simple python script that converts all your Transmit SFTP favorites into a ssh config file

Notifications You must be signed in to change notification settings

nlemoine/transmit-favorites-to-ssh-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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.

About

Simple python script that converts all your Transmit SFTP favorites into a ssh config file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages