https://github.com/nlemoine/transmit-favorites-to-ssh-config
Simple python script that converts all your Transmit SFTP favorites into a ssh config file
https://github.com/nlemoine/transmit-favorites-to-ssh-config
sftp-favorites sshconfig transmit transmit-favorites
Last synced: 26 days ago
JSON representation
Simple python script that converts all your Transmit SFTP favorites into a ssh config file
- Host: GitHub
- URL: https://github.com/nlemoine/transmit-favorites-to-ssh-config
- Owner: nlemoine
- Archived: true
- Created: 2016-02-11T13:41:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-20T15:39:07.000Z (about 8 years ago)
- Last Synced: 2024-08-02T05:09:02.822Z (10 months ago)
- Topics: sftp-favorites, sshconfig, transmit, transmit-favorites
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://panic.com/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](http://fitztrev.github.io/shuttle/) app.
In Transmit, let's say you have:
- Company folder
- Server 1
- Server 2
- Personal folder
- Server 1
- Server 2These favorites will be converted to these HostNames:
- company-folder/server-1
- company-folder/server-2
- personal-folder/server-1
- personal-folder/server-2And will appear as shown above in [Shuttle](http://fitztrev.github.io/shuttle/):

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