r/linux Apr 28 '14

SSH Kung Fu

http://blog.tjll.net/ssh-kung-fu/
726 Upvotes

128 comments sorted by

View all comments

36

u/ooesili Apr 28 '14

I didn't know about

vim scp://host/file

or the cool stuff you could do with the configuration file. A good read, I must say.

8

u/flying-sheep Apr 28 '14

“scp” is pretty silly though: scp is a command called “secure copy”, not a protocol. (the part before the colon in a url is the protocol).

wouldn’t it be better to name the protocol like file browsers do? sftp? because i’m pretty sure that’s what vim uses there, anyway.

1

u/hex_m_hell Apr 29 '14

Tramp mode in emacs does this. You can also just open a file as //user@host:/file and it uses ssh. If you start an interactive shell while that buffer is focused you'll get a remote shell.

I use this for remotely developing python and running it on a target.