Topic "specify PORT no. from command line"

Author Message
[View user's profile]

Joined: 2012-09-25
Posts: 5
Location: singapore
when i transfer a file from windows to unix using (command line), it does not ask for port number.

when i try the same stuff in putty, the file transfer does not take place unless the PORT is specified.

How to specify the port in command line and why it's not asking for port number?
Does it use a default port (22), In my case, port no. of unix is 22. Is this the reason its not asking for port no. ?
If unix port was other than 22, would it still not ask the port ?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
WinSCP uses the default port number for the protocol you are using. What is 22 for SSH.
If you need to specify different port, see:
Martin Prikryl


I have found that if you append the port to the end of the "scp://" URL, it works. Here's an example:

Saves the time of writing a custom script.

For what it's worth, I'm using WinSCP 4.3.3 build 1340.


You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License