sudosh icon indicating copy to clipboard operation
sudosh copied to clipboard

Sudosh + requiretty = no more scp/rsync

Open Thulium-Drake opened this issue 3 years ago • 1 comments

Hi!

I recently implemented sudosh on a couple of CentOS boxes with the requiretty setting in sudoers. However, this breaks scp and rsync. Is there a way to make those work again? I feel there has to be a combination of sudo rules that allow it.

Anyone any idea?

Thulium-Drake avatar Sep 29 '20 14:09 Thulium-Drake

The best workaround is to use sftp for file transfers

Unfortunately rsync won't quite work with sftp, though. There are some workarounds mentioned here

I think you're left with a choice about the tradeoff of allowing notty. Keep in mind you can selectively permit notty for individual users/groups. Maybe that's helpful?

BTW- I'm not affiliated with this project, I'm just a user. I'm replying because of a discussion on an issue associated with notty a few years back

mzpqnxow avatar Nov 20 '21 16:11 mzpqnxow