Timeline for Can vim edit a remote file as root?
Current License: CC BY-SA 3.0
19 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 26, 2023 at 15:19 | answer | added | MacMartin | timeline score: 1 | |
| Jun 28, 2016 at 14:52 | history | edited | Mitch | CC BY-SA 3.0 | deleted 213 characters in body |
| Jun 28, 2016 at 11:35 | comment | added | Stack Exchange Broke The Law | Use scp://root@myserver/......? | |
| Jun 28, 2016 at 7:34 | history | tweeted | twitter.com/StackUnix/status/747694576002007040 | ||
| Jun 27, 2016 at 23:07 | answer | added | marcelm | timeline score: 6 | |
| Jun 27, 2016 at 19:15 | vote | accept | Mitch | ||
| Jun 27, 2016 at 19:07 | comment | added | Satō Katsura | Sorry, I didn't mean to be condescending. | |
| Jun 27, 2016 at 18:10 | answer | added | Edward Falk | timeline score: 4 | |
| Jun 27, 2016 at 17:41 | answer | added | Zachary Brady | timeline score: 11 | |
| Jun 27, 2016 at 17:07 | comment | added | Mitch | @Kusalananda yes | |
| Jun 27, 2016 at 17:05 | comment | added | Kusalananda♦ | @Mitch Does the difference warrant the problems you're describing? | |
| Jun 27, 2016 at 17:04 | comment | added | Mitch | @Kusalananda that attempts to use the remote host's version of vim as opposed to my local version, whereas the vim scp... uses my local version of vim: ssh -t nagios sudo vim /tmp/notouch \n sudo: vim: command not found (this is a centos server that has vi not vim | |
| Jun 27, 2016 at 17:02 | comment | added | Kusalananda♦ | Hmmm... doesn't this work? ssh -t host sudo vim file? | |
| Jun 27, 2016 at 16:52 | comment | added | Mitch | @drewbenn I've updated the question with an edit showing the full process I'm using | |
| Jun 27, 2016 at 16:52 | history | edited | Mitch | CC BY-SA 3.0 | added 656 characters in body |
| Jun 27, 2016 at 16:51 | comment | added | thrig | Why not instead use configuration management to push (or pull) the files out to production? Then you can just use your local editor. | |
| Jun 27, 2016 at 16:47 | comment | added | Mitch | @SatoKatsura I fail to see any real security implications other than having a copy of the remote file on your localhost. I want to use my local version of vim due to the version and for my .vimrc file | |
| Jun 27, 2016 at 16:44 | comment | added | Satō Katsura | Just ssh to the server and edit the file there (with visudo, or whatever). Anything else has security implications. | |
| Jun 27, 2016 at 16:36 | history | asked | Mitch | CC BY-SA 3.0 |