Re: ssh / scp to server from vb6 ?

From: Jim Carlock (anonymous_at_10.10.com)
Date: 02/29/04


Date: Sun, 29 Feb 2004 01:28:17 -0500

It looks like it uses several ports or can use several ports.

switch (cfg->protocol) {
  case PROT_SSH: defport = 22; break;
  case PROT_TELNET: defport = 23; break;
  case PROT_RLOGIN: defport = 513; break;
}

There was mention on one of those sites in my previous post about it
being able to use secure FTP port, which I think is the port 22 above,
and that it can use TELNET as well. The following comes from:

http://www.iana.org/assignments/port-numbers

ftp-data 20/tcp File Transfer [Default Data]
ftp-data 20/udp File Transfer [Default Data]
ftp 21/tcp File Transfer [Control]
ftp 21/udp File Transfer [Control]
# Jon Postel <postel@isi.edu>
ssh 22/tcp SSH Remote Login Protocol
ssh 22/udp SSH Remote Login Protocol
# Tatu Ylonen <ylo@cs.hut.fi>
telnet 23/tcp Telnet
telnet 23/udp Telnet

I don't know of anywhere to test this out, but the TelNet
program looks like it can be used to establish a connection over
using the protocols. I haven't gotten up to the list of commands
that can be sent. So I can't help at all with that.

The Winsock control can be used once you know what sets of
commands are available for the SCP protocol. Most commands
for other protocols are simple two or three character commands
which are followed by parameters and are used to establish a
session.

The server typically gives a response indicating success or failure.

I imagine the session would begin with a set of user id/password,
and possibily protocol defining.

Hope that helps.

-- 
Jim Carlock
http://www.microcosmotalk.com/
Post replies to the newsgroup.
"Jim Carlock" <anonymous@10.10.com> wrote in message
news:uOAEwUo$DHA.4080@TK2MSFTNGP09.phx.gbl...
FTP is kinda slow at doing transfers and everything about is plain
text connections. So it's a TCP protocol, looks like it operates on
a specific port (like everything else), and performs some kind of
standardized encryption so folks with scanners won't get a plain
text user id and password. <g> I know I'm pretty close.
Does it use the same FTP port numbers? I'm looking through the
list of assigned port numbers, and I've found a few SCP, one
owned by Compaq but they are all higher up in the list of port
numbers. I can only assume that it uses encryption over a standard
FTP port.
-- 
Jim Carlock
http://www.microcosmotalk.com/
Post replies to the newsgroup.
"Bob O`Bob" <filterbob@yahoogroups.com> wrote in message
news:404164CB.6D0@yahoogroups.com...
Jim Carlock wrote:
>
> You might want to look at using Winsock or another variation of
> winsock to do this. I don't know much about SCP, and I don't have
> a clue what it is,
To oversimplify, it's ftp, but running through an ssh layer for security.
Some of my hosting providers don't allow plain ftp any more, and personally,
I've found WinSCP preferable to the ftp clients I formerly used, anyway.
Bob
-- 
looking for work again  <http://obob.com/bob/resume/>


Relevant Pages

  • RE: Telnet/ftp problems SBS2000
    ... Please make sure your client computers are configured as both Firewall ... will find two options "Enable folder view for FTP sites" and "Use Passive ... that the control connection has been successfully established, ... (other than port 21) ...
    (microsoft.public.windows.server.sbs)
  • FTP transfer port
    ... FTP transfer port ... the FTP server "listens" for client connections on its port 21. ... it will establish a separate control connection and data connection with ...
    (bit.listserv.ibm-main)
  • Re: FTP Access ISA Server
    ... To allow the ISA server to download some stuff via FTP protocol, ... Local port: Dynamic ... My virus definitions come in via a FTP download. ...
    (microsoft.public.isa)
  • Re: Hacked? External address knocks on internal private address...
    ... The important part of your message is that FTP is allowed out... ... You open a connection to an FTP Server and logon. ... When you ask the server for a file the server issues a "PORT" command ... so it can open a port on the firewall to allow the incoming Data ...
    (comp.security.firewalls)
  • Re: Question: FTP via alternate port
    ... The problem with FTP is that it requires two ports to operate. ... FTP command stream in order to dynamically open that port for the data ... Ideally the attacker would want to upload another tool onto the ...
    (Pen-Test)

Loading