sudosh
sudosh copied to clipboard
Sudosh + requiretty = no more scp/rsync
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?
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