Re:Facebook, Instagram, and WhatsApp outages
by dahfizz on Wednesday July 03, 2019 @11:39PM
(#20351303)
This could be done simply by creating a new user with your super long password. Lock down ssh so you can only log in as this user, and let them `sudo su` into your normal working user.
[ Parent
| on HN ]
Re:Facebook, Instagram, and WhatsApp outages
by eridius on Thursday July 04, 2019 @12:05AM
(#20351421)
I mean, yeah, but I don't want to do that. Partially because I don't want the friction, and partially because that won't work with any other tools that tunnel over ssh (e.g. sftp).
Re:Facebook, Instagram, and WhatsApp outages
by eitland on Thursday July 04, 2019 @02:57AM
(#20352228)
There will be friction, but sftp and port tunneling - which are my most used fwatures besides plain ssh - should be possible?
I mean either you sftp to a shared folder that can be accessed from your regular user as well or you use a staging area with a cron job (or you load/unload the staging area manually.)
Re:Facebook, Instagram, and WhatsApp outages
by eridius on Thursday July 04, 2019 @03:19AM
(#20352345)
If I'm sftp'ing to my server it's because I want to access my files. Not a special shared folder that I then have to separately ssh in, su to the real user, and move into place.
I'm not deploying a website so a staging area isn't applicable. This is just a VPS that I use for various purposes.