Comments on: 7 SFTP Command Line Examples In Linux https://www.rosehosting.com/blog/7-useful-sftp-command-line-examples/ Premium Linux Tutorials Since 2001 Wed, 07 Dec 2022 15:59:42 +0000 hourly 1 https://wordpress.org/?v=6.5.4 By: admin https://www.rosehosting.com/blog/7-useful-sftp-command-line-examples/#comment-48773 Sun, 12 Dec 2021 07:26:46 +0000 https://www.rosehosting.com/blog/?p=21071#comment-48773 In reply to Aswin Sreekumar.

You can use any FTP client (such as FileZilla) to access your server and list the current directories to see if the directory in question already exists, or use the command to list (ls) as per the tutorial on this page.

]]>
By: Aswin Sreekumar https://www.rosehosting.com/blog/7-useful-sftp-command-line-examples/#comment-48772 Sat, 11 Dec 2021 07:42:27 +0000 https://www.rosehosting.com/blog/?p=21071#comment-48772 I want to create a directory in sftp via script, but first i need to check whether the directory already exists in sftp. Can anyone help on this. Btw i am not having ssh access to sftp server.

]]>
By: Mark Senogles https://www.rosehosting.com/blog/7-useful-sftp-command-line-examples/#comment-46566 Wed, 24 Jan 2018 20:39:21 +0000 https://www.rosehosting.com/blog/?p=21071#comment-46566 If I am using SFTP to push an empty file from Linux to the Mainframe to create a primer file in generation 1 of the dataset, how do I specify the file specifications so that version one has the same file specs that were defined when the dataset was created?

]]>
By: admin https://www.rosehosting.com/blog/7-useful-sftp-command-line-examples/#comment-46507 Fri, 05 Jan 2018 09:04:35 +0000 https://www.rosehosting.com/blog/?p=21071#comment-46507 In reply to maha.

mput is an undocumented alias to put. If you have issues with mput, you should consider using rsync over ssh.

]]>
By: maha https://www.rosehosting.com/blog/7-useful-sftp-command-line-examples/#comment-46506 Fri, 05 Jan 2018 07:05:15 +0000 https://www.rosehosting.com/blog/?p=21071#comment-46506 Yes , I am trying to upload the file from local to remote using mput as below.
sftp> mput file1 file2
But it is taking file1 as source file and file2 as destination file path.
But i need to upload file1 and file2 to remote server in a single command.

]]>
By: admin https://www.rosehosting.com/blog/7-useful-sftp-command-line-examples/#comment-46504 Thu, 04 Jan 2018 20:25:46 +0000 https://www.rosehosting.com/blog/?p=21071#comment-46504 In reply to maha.

Using MPUT you can upload multiple files from a local directory to a remote directory. Are you trying to upload or download the files? To download multiple files from a remote directory to a local directory you can use MGET.

]]>
By: maha https://www.rosehosting.com/blog/7-useful-sftp-command-line-examples/#comment-46502 Thu, 04 Jan 2018 13:47:52 +0000 https://www.rosehosting.com/blog/?p=21071#comment-46502 How to transfer 2 different files in a single command using sftp.
Actually I tried with mput command . But it is taking the first argument after mput as source file and second argument as destination file.
Example:
sftp> mput
It is trying to copy file1 to file2 . This is happening only in sftp and it is working fine when using ftp.
can someone please help me to solve using sftp.

]]>
By: raul https://www.rosehosting.com/blog/7-useful-sftp-command-line-examples/#comment-46381 Wed, 06 Dec 2017 13:15:48 +0000 https://www.rosehosting.com/blog/?p=21071#comment-46381 Yes, this is great for an “ssh” connection, what about an “sftp” connection? The prompt is without color and always “sftp>” no matter what server you are connecting to. Thanks.

]]>