Re: ssh / scp to server from vb6 ?
From: Jim Carlock (anonymous_at_10.10.com)
Date: 02/29/04
- Next message: Bob O`Bob: "Re: How to retrieve the milliseconds part from a Date variable?"
- Previous message: Laser Lu: "How to get the Library name of the type of a variable?"
- In reply to: Jim Carlock: "Re: ssh / scp to server from vb6 ?"
- Messages sorted by: [ date ] [ thread ]
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/>
- Next message: Bob O`Bob: "Re: How to retrieve the milliseconds part from a Date variable?"
- Previous message: Laser Lu: "How to get the Library name of the type of a variable?"
- In reply to: Jim Carlock: "Re: ssh / scp to server from vb6 ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|