LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-08-2004, 02:09 PM   #1
nbcthreat
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
SheldonPlankton
Member
 
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.

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

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

scp -P80 myfile goofy@dizzydorf.com:

sftp is a bit different ...

sftp -oPort=80 dizzydorf.com

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 dizzyland.com 80
Trying 10.10.10.40...
Connected to dizzyland.com.
Escape character is '^]'.
SSH-1.99-OpenSSH_3.5p1

That means sshd is listen on port 80 on your remote system.
 
Old 07-08-2004, 04:03 PM   #3
MrMud
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
Options:
-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)
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:07 PM.

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