An fzf powered remote connection script written in python
- Python
- fzf
The python script will read in a config.json
file that contains the remote servers you want to connect to. It needs to be in the same directory as the python script. See below for an example:
{
"Server 1": {
"ssh_connection": "ssh [email protected]",
"session_names": [
"echo"
]
},
"Server 2": {
"ssh_connection": "ssh [email protected]",
"session_names": [
"superpixels",
"image-captioning"
]
},
"HPC": {
"ssh_connection": "ssh -i ~/.ssh/id_rsa [email protected]",
"session_names": [
"secret-proj-1",
"secret-proj-2"
]
}
}
For ease of use, I put an alias in my ~/.zshrc
file: alias trcf='python3 /path/to/download/tmux-remote-connect-fzf.py'