pscp question...

Mesite
Mesite used Ask the Experts™
on
I'm wondering if pscp can be used with a different port than the default and if so, can you add an example of the code?  I'm able to run pscp with the default code but when I use another port that's LISTENING on an available server, I always get a timeout.

Thanks in advance!
-Shaun
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Sudeep SharmaTechnical Designer

Commented:
What other port are you trying to use for pscp? Any port between 1-1024 would give you trouble, try giving port number larger than that and then try

Sudeep
Sudeep SharmaTechnical Designer

Commented:
Also just make sure that if you have firewall installed then the port you are trying to use if open on it.

Sudeep
Commented:
pscp -P 443 localfile larsrohr@myserver.com

Yes, I have a server on which sshd listens on two ports -- the usual port 22 and also port 443.  This way, when I'm stuck on a hotel wifi network that only allows web surfing access, I can still ssh and tunnel to my own server as needed.

The "-P <port>" (any options, really) has to go before the source and destination.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial