{"id":1372,"date":"2021-12-16T13:24:59","date_gmt":"2021-12-16T10:24:59","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/08\/20\/how-to-connect-to-an-sftp-server-in-ubuntu-2\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/08\/20\/how-to-connect-to-an-sftp-server-in-ubuntu-2\/"},"modified":"2021-12-16T13:24:59","modified_gmt":"2021-12-16T10:24:59","slug":"how-to-connect-to-an-sftp-server-in-ubuntu","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1372-how-to-connect-to-an-sftp-server-in-ubuntu\/","title":{"rendered":"How to connect to an SFTP server in Ubuntu"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>SFTP is a built-in feature of SSH, and once SSH is installed on a system, SFTP can be used to transfer files back and forth with a GUI or terminal. SFTP is especially useful with servers.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-406744 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-connect-to-an-sftp-server-in-ubuntu.png\" alt=\"SFTP server in Ubuntu\" width=\"1200\" height=\"659\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-connect-to-an-sftp-server-in-ubuntu.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-connect-to-an-sftp-server-in-ubuntu-5.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-connect-to-an-sftp-server-in-ubuntu-6.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-connect-to-an-sftp-server-in-ubuntu-8.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>In this guide, we\u2019ll show you how to connect to SFTP servers on Ubuntu, as well as how to configure your own server to host. To get started, ensure you use the latest Ubuntu desktop, Server, or an OS based on Ubuntu.<\/p>\n<h2>Set up SFTP on Ubuntu<\/h2>\n<p>If you plan to connect to an SFTP server on your Ubuntu PC, you\u2019ll have to set up an SSH server on your remote Ubuntu server or remote Ubuntu PC so you can access it. Thankfully, setting up an SSH server on Ubuntu is incredibly easy.<\/p>\n<p>To start, open up a terminal window on the Ubuntu desktop. You can launch a terminal window by pressing <strong>Ctrl + Alt + T<\/strong> on the keyboard. Or, search for \u201cTerminal\u201d in the Ubuntu app menu and launch it that way.<\/p>\n<p>With the terminal window open, use the <strong>apt install<\/strong> command to install the \u201copenssh-server\u201d package. This package, once installed, will configure and set up an SSH server, as well as SFTP, which you can access remotely.<\/p>\n<pre>\nsudo apt install openssh-server\n<\/pre>\n<p>When the OpenSSH server is up and running on the remote computer, you can do a quick test to ensure that you can connect to it. To do that, run <strong>ssh your-username@localhost<\/strong> on the machine with the SSH server. You must use your username password to log in.<\/p>\n<h2>Connecting to SFTP over the command-line<\/h2>\n<p>To connect to an SFTP server with the command-line on Ubuntu, start by launching a terminal window. Then, with the terminal window open, use the <strong>sftp<\/strong> command to connect to your SSH server.<\/p>\n<p>To connect, specify the username on the remote machine, as well as its IP address. For example, if the remote Ubuntu server or Ubuntu PC hosting an SSH server has an IP address of \u201c192.168.1.203,\u201d use that as the hostname.<\/p>\n<pre>\nsftp derrik@192.1681.1.203\n<\/pre>\n<p>Once connected, you can run the <strong>ls<\/strong> command to view what is on the remote server.<\/p>\n<pre>\nls\n<\/pre>\n<p>To download anything from the remote server to your home directory, specify the file name on the remote SFTP server and use the <strong>get<\/strong> command.<\/p>\n<pre>\nget test.txt\n<\/pre>\n<p>Need to upload something to the remote SFTP server? Use the <strong>put<\/strong> command. It will upload any file to the remote SFTP server in your local home folder (\/home\/USERNAME\/).<\/p>\n<pre>\nput test.txt\n<\/pre>\n<h2>Connecting to SFTP with the Ubuntu file manager \u2013 Gnome Files<\/h2>\n<p>The Gnome Files app is one of the most used file managers on all of Linux, as many mainstream Linux distributions choose Gnome Shell as their desktop. Here\u2019s how to use it to connect to an SFTP server with it on Ubuntu.<\/p>\n<p>To start, launch the Ubuntu file manager on the desktop. When it is open, find the \u201cOther Locations\u201d button, and click on it. When you select this button, you\u2019ll be taken to the \u201cOther locations\u201d area.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-406743 size-full\" src=\"https:\/\/www.addictivetips.com\/app\/uploads\/2021\/08\/files-connect.png\" alt=\"\" width=\"1200\" height=\"737\" srcset=\"https:\/\/www.addictivetips.com\/app\/uploads\/2021\/08\/files-connect.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-connect-to-an-sftp-server-in-ubuntu-11.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-connect-to-an-sftp-server-in-ubuntu-12.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-connect-to-an-sftp-server-in-ubuntu-14.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>Inside \u201cOther locations,\u201d find the \u201cConnect to Server\u201d text box and click on it with the mouse. Then, type out the address of the server. For example:<\/p>\n<p><code>sftp:\/\/192.168.1.203<\/code><\/p>\n<p>After entering the IP address (or hostname) in the box, press the \u201cConnect\u201d button. When you select this button, a pop-up window will appear. Next, enter your username and password, then click \u201cConnect\u201d again.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-406744 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-connect-to-an-sftp-server-in-ubuntu.png\" alt=\"\" width=\"1200\" height=\"659\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-connect-to-an-sftp-server-in-ubuntu.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-connect-to-an-sftp-server-in-ubuntu-5.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-connect-to-an-sftp-server-in-ubuntu-6.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-connect-to-an-sftp-server-in-ubuntu-8.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>Upon connecting, you\u2019ll see your SFTP server in the Ubuntu files app. Drag files into the server to upload them and copy them to other folders on your PC to download them.<\/p>\n<h2>Connecting to SFTP with Filezilla on Ubuntu<\/h2>\n<p>You must first install the app to connect to an SFTP server using Filezilla on Ubuntu. Then, open up a terminal window on the Ubuntu desktop, and use the command below to install the app.<\/p>\n<pre>\nsudo apt install filezilla\n<\/pre>\n<p>Once the program is installed on your system, launch it. Then, find the host box and type in the code below.<\/p>\n<pre>\nsftp:\/\/your-sftp-server-ip\n<\/pre>\n<p>After writing in the \u201cHost\u201d box, write your username into the \u201cUsername\u201d box, your password into the \u201cPassword\u201d box. Then write \u201c22\u201d into the \u201cPort\u201d box. 22 is the default port for SFTP.<\/p>\n<p>Select the \u201cQuickconnect\u201d button to connect to your SFTP server with Filezilla when all information is filled out. You\u2019ll soon be connected to your server with Filezilla.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-406757 size-full\" src=\"https:\/\/www.addictivetips.com\/app\/uploads\/2021\/08\/fzil-e1629007669541.png\" alt=\"\" width=\"1200\" height=\"562\"\/><\/p>\n<p>From here, you can upload and download files to your SFTP server from Ubuntu. If you\u2019d like to download a file, here\u2019s what to do. First, right-click on the right column with the mouse on a file you want. Then, select the \u201cDownload\u201d option to download.<\/p>\n<p>You can also upload from Ubuntu using Filezilla. To do it, right-click on a file in the left column with the mouse. Then, select the \u201cUpload\u201d button. Doing this will send the file to the SFTP server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles SFTP is a built-in feature of SSH, and once SSH is installed on a system, SFTP can be used to transfer files back and forth with a GUI or terminal. SFTP is especially useful with servers. In this guide, we\u2019ll show you how to connect to SFTP servers on Ubuntu, as well as &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1373,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[33],"_links":{"self":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1372"}],"collection":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/comments?post=1372"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1372\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1373"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}