Any way to use sftp as superuser?

15,957

It's generally not recommended that you allow direct root remote access. If you enable direct root login via SSH, anyone could attempt to brute-force your root password, at which point they can do whatever they like with your server.

That said, if you're set on doing this, you should set up public key login, as it's more secure than password-based login. That page includes instructions on how to set this up for root. Once you have that configured, you can configure your SFTP client to login via key rather than password.

Share:
15,957

Related videos on Youtube

Mehdi
Author by

Mehdi

Updated on September 18, 2022

Comments

  • Mehdi
    Mehdi over 1 year

    I'm using Transmit.app (in Mac) to sftp to my Ubuntu server. Is there any way to gain superuser permission so that I can remotely write any file?

    • Daniel Andersson
      Daniel Andersson almost 12 years
      Have you tried logging in as root on the Ubuntu Server? Does it work then?
    • Mehdi
      Mehdi almost 12 years
      Yes, I've enabled root in Ubuntu. I can ssh to it as root, but sftp doesn't work.
  • Mehdi
    Mehdi almost 12 years
    Using scp will be no problem. Does cyberduck allow to pass sudo where necessary?