We can login as either root user or normal user for sftp. If we logged in as the root user our working directory will be /root on the remote system.
If we logged in as the normal user our working directory will be the home directory of the normal user ex: /home/alex.
To connect the remote machine as the root user of the remote machine use the command as shown below.
After we established the connection or prompt will be changed.check the present working directory now.
|Exit||Quit sftp session|
|Lcd||Changing the local directory path|
|Lls||List the local directory files|
|Lmkdir||Creating the local directory|
|Lpwd||Print local working directory|
|Ls||List the remote directory files|
|Lumask||Set the local umask|
|Put||To upload the file|
|Pwd||To print remote working directory|
|Version||Show sftp version|
|?||To show help|
After login to the remote machine choose the file you want to down load
In the above output the highlighted file I am going to download that is sapbi.new
Check the file that can be downloaded into our machine or not.
From the above output the file is success filly downloaded to our machine