$ vi scp://username@host:12345//path/to/somefile
If you are running sshd on different port use above this command to edit/view remote file with vi/vim.
In above example I am using port 12345.
by David Winterbottom (codeinthehole.com)
$ vi scp://username@host:12345//path/to/somefile
If you are running sshd on different port use above this command to edit/view remote file with vi/vim.
In above example I am using port 12345.
by David Winterbottom (codeinthehole.com)