Skip to content
Advertisement

open file from remote host with Kate

Is it possible to open a file from a remote host with Kate like you can with vim:
vim scp://root@cc3//var/log/dp.log?
I’ve tried the following but neither option seems to work:
kate scp://root@cc3//var/log/dp.log & and kate fish://root@cc3//var/log/dp.log &

Advertisement

Answer

By design, Kate interacts with user by dialogs, while you can also start editing a file in kate from command line with:

JavaScript

Please do note that if you are not inside the kde/plasme desktop enviroment, kate may not be able to handle external files.

In this case, you can mount a remote filesystem with sshfs.

Example:

JavaScript

Once done, you’ll be able to:

JavaScript

Following suggestion in comments, you can also install the kio-extra libraries, problably not available on your no-kde desktop

JavaScript

Restarting your kate, you’ll have your remote connections at hand inside the “+ Other locations” tab

enter image description here

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement