Now you should be able to login as root with your SSH keys. If the SFTP Protocol is specified, it is possible to specify the Logon Type as "Key File" and specify the location of the private key file ( my-ssh-key). This is done (I believe) in the profile settings in the Site Manager of the FileZilla client. Copy the contents of my-ssh-key.pub into this file: /root/.ssh/authorized-keys (using sudo access).Ĭonfigure FileZilla to use Key logon. Login to Ubuntu with your account with sudo access. Generate an SSH keypair, if you don't have one (can be done with this command: ssh-keygen -t rsa -b 2048 -f my-ssh-key - this will generate 2 files: my-ssh-key and my-ssh-key.pub). In order for you to log in as root with FileZilla (or any other SFTP tool), you need to setup SSH key authentication. Root access with password is disabled by default on Ubuntu. Actual results: Connection failure: FATAL ERROR: No supported authentication methods available (server sent: publickey) Expected results: Successful connection. Try to connection with RSA key authentication (idrsa should be added to the SSH agent). Disclaimer: I'm not an expert on FileZilla, so for specific instructions please refer to FileZilla documentation. Create SFTP connection in FileZilla to 127.0.0.1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |