Copying files to Sftp folder via command line or commands?
Moderators: white, Hacker, petermad, Stefan2
Copying files to Sftp folder via command line or commands?
Hi
Is there a way to copy selected file to a certain Sftp(existing) directory via command line or command way?
I have the Sftp plugin working well with Sftp servers. What I want is to be able to select a file and copy it to a certain folder on a Sftp server without opening the Sftp tab and browsing to that particular folder.
Is there a way to copy selected file to a certain Sftp(existing) directory via command line or command way?
I have the Sftp plugin working well with Sftp servers. What I want is to be able to select a file and copy it to a certain folder on a Sftp server without opening the Sftp tab and browsing to that particular folder.
- ghisler(Author)
- Site Admin
- Posts: 48088
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No, Total Commander is an interactive tool only. Maybe you can achieve it with Putty or some other SFTP tool. Does anyone here know such a tool which works on the command line?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Copying files to Sftp folder via command line or commands?
HI guys,
just checking if nothing has changed since this thread was active - still no way to trigger sftp download via command line via the plugin?
Thank you,
Alex
just checking if nothing has changed since this thread was active - still no way to trigger sftp download via command line via the plugin?
Thank you,
Alex
- ghisler(Author)
- Site Admin
- Posts: 48088
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Copying files to Sftp folder via command line or commands?
Why not use the PuTTY SCP client as user Sob suggested?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Copying files to Sftp folder via command line or commands?
Sure can do this we like TC because it one stop shop for heaps of nice features - that's the reason i guess. Thank you for the amazing tool!
Re: Copying files to Sftp folder via command line or commands?
But TC can support you utilizing a command line tool by providing parameter for the selected files ,... or like that.
Next you can executed that from own created button or User-defined command plus the possibility to add an keyboard shortcut.
Re: Copying files to Sftp folder via command line or commands?
AS said TC is driven by the user interaction. I never close my TC window and do many background task, sync,..
I also use a lot of console tools but mostly driven by TC to fill parameter, lists,....
Re: Copying files to Sftp folder via command line or commands?
Butter bei die Fische!
https://www.ssh.com/ssh/putty/putty-manuals/0.68/Chapter5.html
So to copy the local file c:\documents\foo.txt to the server example.com as user fred to the file /tmp/foo you would type:
pscp c:\documents\foo.txt fred@example.com:/tmp/foo
With TC use an button like:
Command: "Tools\PuTTY\pscp"
Parameters: %P%N fred@example.com:/tmp/foo
Start path:
Icon: "Tools\PuTTY\pscp"
Tooltip: pSCP selected file to /tmp/foo
May need some adjustment, but basically that's it.
https://www.ssh.com/ssh/putty/putty-manuals/0.68/Chapter5.html
So to copy the local file c:\documents\foo.txt to the server example.com as user fred to the file /tmp/foo you would type:
pscp c:\documents\foo.txt fred@example.com:/tmp/foo
With TC use an button like:
Command: "Tools\PuTTY\pscp"
Parameters: %P%N fred@example.com:/tmp/foo
Start path:
Icon: "Tools\PuTTY\pscp"
Tooltip: pSCP selected file to /tmp/foo
May need some adjustment, but basically that's it.
Re: Copying files to Sftp folder via command line or commands?
Thank you Stefan & Team,
wrote a script with psftp.
wrote a script with psftp.