Questions tagged [ssh]
The ssh tag has no usage guidance.
28
questions
1
vote
0
answers
68
views
How to copy to system clipboard using Mosh + Tmux?
I've set vim.opt.clipboard = "unnamedplus" to copy to/paste from the system clipboard. However, I noticed that the behavior differs whether I'm using nvim in my local machine, a remote ...
0
votes
1
answer
293
views
How can I make NeoVim's clipboard work on my linux servers (like nano)?
I cannot get NeoVim to work like nano does out of the box with regards to
clipboard copy/paste. Here is exactly what I am trying to do:
I use either a linux laptop (Linux Mint) or a Chromebook ...
0
votes
1
answer
118
views
Vim vertical split window not rendered correctly
Not sure if it's related to vim configuration, tmux settings or ssh config, I opened a file with vim on a remote server, and every time when I use :vsp command to split a vertical window, the right ...
2
votes
1
answer
144
views
How to troubleshoot SSH-related issues?
server A (1.2.3.4): I'm accessing it every day, no issues:
keys on the local machine are in ~/.ssh (id_rsa and id_rsa.pub)
user "toraritte" is available on both machines
starting and ...
0
votes
2
answers
183
views
terminal and ssh-agent/ssh-key
I use ssh-keys to access the remote git server (e.g. github/gitlab). My ssh-key is protected by a password. Thus when I call a git command with the remote, it will require me to enter the password for ...
2
votes
1
answer
216
views
Vim workflow for projects on remote machines
I have several projects on several different VMs which I can ssh into. I also have a nice Vim workflow with plugins like fzf and coc.nvim on my local macbook.
I'd like to learn what is the best way to ...
1
vote
0
answers
166
views
How do I regain control of my Vim session when it hangs while saving a file via netrw?
I edit a lot of files using netrw in gvim. Sometimes, when I mash C-s to save, it will hang my vim session. I'm not sure if this is because of a network error, or because I also sometimes hit C-z at ...
0
votes
0
answers
181
views
Use vim locally to access GNU R in docker-container
Disclaimer: I posted part of this question here with a focus on how to use Emacs+ESS, but a solution with vim or neovim is also of interest to me.
I'm using Debian Stable (currently Buster) to do my ...
0
votes
1
answer
847
views
Neovim fail to open file via scp - Undefined variable: b:netrw_method
I am opening a remote file with this command:
[n]vim scp://user@host/relative_file
Vim (8.2) opens the file correctly, but Neovim (v0.5.0-dev+1186-g8665a96b9) just shows a blank file and a blank ...
1
vote
1
answer
93
views
Can Netrw use [host] type notation to look in .ssh/config and find the host to connect to?
Short Question:
This is failing. Is it valid syntax?
:tabedit scp://[home]/~/stuff/01234567/update/notes.txt
Alternatively, can I easily use a longish somewhat complex shell command in vim to get ...
2
votes
1
answer
552
views
Vim-based alternative for Emacs tramp-mode
Disclaimer: this question was posted prior to unix.se but, as recommended by a moderator, was reposted here. The original question was not (yet) deleted since some good comments were posted there.
I'...
2
votes
0
answers
133
views
How can I use Vim with rmate?
TextMate 2 introudced rmate, which has become a de-facto standard for editing remote files, with multiple implementations of the remote component and client implementations for other editors, ...
1
vote
0
answers
56
views
No + or * register on Linux (accessed via SSH from macOS)? [duplicate]
I am on Ubuntu 14.04.3 and Vim 8.2. I'm trying to figure out how to access either the * or + clipboard on Ubuntu but it seems like it doesn't exist? After doing "*yy and "+yy on lines of ...
1
vote
1
answer
808
views
Vim takes a long time to close over SSH?
While ssh'd into my server, vim hangs for a variable amount of time (about 2 seconds, but can be longer or shorter) when opening and closing.
It's worth noting that (to my eyes) the delay is the ...
3
votes
1
answer
1k
views
copy-paste selection locally when editing files on remote headless server
When connected to a remote headless Linux server via SSH, I want to be able to do 3 things:
select text using the mouse and copy the selection into my local X clipboard
paste from local X clipboard ...
1
vote
0
answers
159
views
How do I unconditionally disable all the "smart" terminal actions in vim
I have already set mouse= and set ttymouse= but I still get it intercepting paste when I'm trying to paste vim commands, like I want it to do some kind of complex :map! .... so I copy that from ...
1
vote
0
answers
504
views
Why is network latency becomes too long when edit in the sshfs mounted files
I mounted the remote server directory to my local machine mount point with sshfs. Thus I could use my local vim to edit my code, it is much faster than editing with the vim installed to the remote ...
0
votes
1
answer
873
views
how could I use gvim through ssh two hops
I sometimes need to work on remote server which does not have x11 installed and thus I cannot use vim with its full features. I want to work on remote server with the gvim installed to my local ...
2
votes
0
answers
1k
views
What does "No lines in buffer" mean when editing via scp?
I was using vim scp:// and e scp:// to edit remotes files. Sometimes I failed to open and got message --No lines in buffer--. What does mean and how I should solve?
1
vote
0
answers
179
views
Update OS enviroment variables from inside VIM
I use vim inside tmux over an ssh session and I often run into the issue where the $DISPLAY variable gets changed, screwing up my copy-paste.
When I log in, $DISPLAY gets assigned to something new: ...
-4
votes
1
answer
447
views
Why vim scp can't read file on my remote vps? [closed]
Password-free ssh authentication had been set.
There is a file /home/test.txt in my remote_ip.
vim scp://root@remote_ip//home/test.txt
Why vim scp can't read file on my remote vps?
vim --version
...
1
vote
2
answers
642
views
how to point xdebug back to vim on local host
I'm following the instructions here to setup xdebug on my local machine on vim. Everything went smooth, until I reached this part:
To initialize a debugging session, XDebug will attempt to make a
...
4
votes
1
answer
424
views
Fugitive Gbrowse while being ssh on a server
I work remotely via ssh on my dev machine which runs a tmux. I want to pipe the output of the Gbrowse back to my laptop. Is there any reasonable way to do that.
1
vote
0
answers
61
views
How to find out the default system copy register? [duplicate]
I want to know how to find the default copy register on any machine. I ssh into different machines and use vi. But on some of them the "+ and/or "* registers don't work. Also when I can use my mouse I ...
0
votes
0
answers
497
views
System clipboard not working via ssh [duplicate]
I work on a remote server and would like to yank stuff to the server's clipboard. However "+y gives me an error flash (visual terminal bell) and when quitting vim, I can't paste in the terminal.
...
6
votes
2
answers
1k
views
trailing spaces when copying text from vim session in one server to vim session in another server
I have two windows open in tmux(version 2.3). In first tmux window I have a SSH session to server1 and in second tmux window I have a SSH session to server2. In server1 I opened a shell script with ...
0
votes
1
answer
314
views
Vim remotely over SSH channel and see the MATLAB figures
I want to ssh into a Linux server from my macbook, and code Matlab, execute my Matlab code and see the figures that are produced by Matlab all through the one single SSH channel. I note that, I don't ...
14
votes
3
answers
5k
views
Navigating using SSH
I know one can use vim scp://host/path/to/file to edit locally remote files then update the remote machine when saving (:w).
However I would like to know if it's possible to navigate through ...