View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-08-2004, 02:09 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 17

Rep: Reputation: 0
pscp, psftp through port 80?

Can this be done? I can ssh to my home box on port 80, but can't figure out how to specify the port for pscp or psftp.
Old 07-08-2004, 03:14 PM   #2
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
pscp? psftp? These are typically window's ports of SSH clients that come with PuTTy.
So you should probably google for PuTTy ... I only know about OpenSSH's scp and sftp.

scp [-pqrvBC46] [-F ssh_config] [-S program] [-P port] [-c cipher]
[-i identity_file] [-o ssh_option] [[user@]host1:]file1 [...]

... so if you want to scp to a sshd server listening on port 80 you could do this ...

scp -P80 myfile

sftp is a bit different ...

sftp -oPort=80

Be aware that 80 is typically the port httpd (like apache) use. You can check to see what is listening on port 80 with telnet.

$ telnet 80
Connected to
Escape character is '^]'.

That means sshd is listen on port 80 on your remote system.
Old 07-08-2004, 04:03 PM   #3
LQ Newbie
Registered: Apr 2004
Location: Portland, Oregon
Distribution: Slackware/Mandrake/Redhat
Posts: 21

Rep: Reputation: 15
Typically, windows uses a /? instead of --help or -h. For your convenience it is -P, below are the other options...

Z:\>pscp /?
PuTTY Secure Copy client
Release 0.53b
Usage: pscp [options] [user@]host:source target
pscp [options] source [source...] [user@]host:target
pscp [options] -ls user@host:filespec
-p preserve file attributes
-q quiet, don't show statistics
-r copy directories recursively
-v show verbose messages
-load sessname Load settings from saved session
-P port connect to specified port
-l user connect with specified username
-pw passw login with specified password
-1 -2 force use of particular SSH protocol version
-C enable compression
-i key private key file for authentication
-batch disable all interactive prompts
-unsafe allow server-side wildcards (DANGEROUS)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 05:58 AM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 08:07 PM
Psftp (SSH) Client connection issue, Pls Help, TQ.. garychwm Linux - Networking 2 10-09-2005 02:02 AM
--destination-ports port[,port[,port...]] KevinGuy Linux - Networking 1 03-16-2004 06:06 PM
PuTTY pscp HELP! Joelseph Linux - Software 2 01-20-2004 02:13 AM

All times are GMT -5. The time now is 08:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration