0

Here I need to run one of the script when login user using sftp, because something misconfigured sshd-config file so that SSH login not working but sftp working fine, My plan is to replace sshd-config file using sftp.

Note: Root user also going into the jail means only home directory showing when user login. Is it possible to do that or any other way ?

  • Yes. It should work with sftp as user root. – Michael D. Feb 8 '17 at 9:44
  • @MichaelD. I've root user credential and able to login with sftp, Can you please tell me how to do that ? – Nullpointer Feb 8 '17 at 9:46
0

Note: Root user also going into the jail means only home directory showing when user login. Is it possible to do that or any other way ?

If the root is chrooted you can not access files outside of home directory. Even if you could, you can not restart sshd server over sftp to apply the new configuration.

  • First I like to change configuration then will do the restart the server to restart the service. – Nullpointer Feb 8 '17 at 10:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.