To improve security on a RHE server of mine, I disabled root login using my sshd_config. Of course, I can no longer login as root via SSH/SFTP on this machine. I'd like to keep root locked off indefinitely, but I can't figure out another way to edit system files (owned by root) via SFTP.
I have been su'ing over to root from an admin account while connecting via SSH, but I'm used to using a graphical client for SFTP-based edits. In the past, if I wanted to change httpd.conf I would have opened up BBEdit and used its FTP/SFTP tool. If I wanted to send up a file to /root I would've used Interarchy or another tool like it.
I don't know of a way to tell an SFTP program to su or sudo, or if there's even a way? I realize I could be using vi or emacs or another command line editor, but my systems are somewhat complicated and it will be hard to do things that way. Thanks for the help![]()


LinkBack URL
About LinkBacks
Reply With Quote