WinSCP ASL3 root login

How do I get root access on winscp? I have a new ASL3 install. Thank you.

Follow this guide to enable login of the root user on Debian. NOTE: you really shouldn’t do this if SSH is exposed to the internet, qualified here that I have a couple of servers set up with root login enabled, but they hard require keys, and reject any password login attempt. Root login is just another potential attack vector. Proceed with appropriate levels of caution.
https://linuxconfig.org/enable-ssh-root-login-on-debian-linux-server

FWIW, the official AllStarLink guidance is to never enable ssh-as-root with a password. If it’s required at all (which is rare), use SSH keys only.

To gain su access while using WinSCP I followed these steps:

  • Go to your WinSCP profile (Session > Sites > Site Manager)
  • Click on Edit > Advanced… > Environment > SFTP
  • Insert sudo su -c /usr/lib/sftp-server in “SFTP Server”
  • Save and connect

When I attempt that setup, I get an error when connecting with the message “Cannot initalize SFTP protocol. Is the host running an SFT server”? I have no problem connecting via SFTP without this setting. Any ideas?

As mentioned above, you cannot SSH as root to an ASL3 Appliance with a password. What AB0LV posted is not correct and will not work. Either learn to use SSH keys and use a key with root or copy the files over with the normal account and move them into place from a normal terminal window.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.