![]() Note: Putting the password in plaintext as in the examples above is extremely insecure in general I strongly recommend creating a restricted FTP account on the server which only allows uploads to a special directory. See wput -help or man wput for many more options. ![]() Now you should be able to login as root with your SSH keys. Use the -u option to force an upload when the destination file already exists. home/ubuntu show current directory on local server sftp> pwd /home/ubuntu show files in current directory on FTP server sftp> ls -l drwxrwxr-x 2 ubuntu ubuntu 6 Apr 22 21:33 publichtml -rw-rw-r- 1 ubuntu ubuntu. 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). Ubuntu 20.04 LTS OpenSSH SSH File Transfer (Ubuntu) Server World: Other OS Configs. 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. Disclaimer: I'm not an expert on FileZilla, so for specific instructions please refer to FileZilla documentation.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |