Re: ConnectedEvent - WeOnlyDo Discussion board

Re: ConnectedEvent (General questions)

by Paul, Friday, April 11, 2008, 11:25 (5868 days ago) @ woddrazen

Hi,

thanks! Now it works:-)

delegate void ConnectedEventCallback(object Sender, WeOnlyDo.Client.SFTP.ConnectedArgs Args);

private void sftp1_ConnectedEvent(object Sender, WeOnlyDo.Client.SFTP.ConnectedArgs Args)
{
if (this.textBox2.InvokeRequired)
{
ConnectedEventCallback d = new ConnectedEventCallback (sftp1_ConnectedEvent);
this.Invoke(d, new object[] { Sender, Args });
}
else
{if (Args.Error == null)
{
textBox1.Text=
***CONNECTED!! ;
}
else
textBox1.Text= Args.Error.Message;
}
}

Now I get the information, that a connection can not established:-(
It works with WinSCP... Protocol-extract:

2008-04-09 15:21:15.359 Session name: myUser@myPC
. 2008-04-09 15:21:15.359 Host name: 222.20.146.238 (Port: 22)
. 2008-04-09 15:21:15.359 User name: myUser (Password: Yes, Key file: No)
. 2008-04-09 15:21:15.359 Transfer Protocol: SFTP
. 2008-04-09 15:21:15.359 SSH protocol version: 2; Compression: No
. 2008-04-09 15:21:15.359 Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2008-04-09 15:21:15.359 Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. 2008-04-09 15:21:15.359 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2008-04-09 15:21:15.359 SSH Bugs: -,-,-,-,-,-,-,-
. 2008-04-09 15:21:15.359 SFTP Bugs: -,-,-
. 2008-04-09 15:21:15.359 Proxy: SOCKS4
. 2008-04-09 15:21:15.359 HostName: proxy.XXXXX.net (Port: 1080); Username: ; Passwd: No
. 2008-04-09 15:21:15.359 Return code variable: Autodetect; Lookup user groups: Yes
. 2008-04-09 15:21:15.359 Shell: default, EOL: 0
. 2008-04-09 15:21:15.359 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2008-04-09 15:21:15.359 Cache directory changes: Yes, Permanent: Yes
. 2008-04-09 15:21:15.359 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2008-04-09 15:21:15.359 Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. 2008-04-09 15:21:15.359 --------------------------------------------------------------------------
. 2008-04-09 15:21:15.375 Looking up host 222.20.146.238
. 2008-04-09 15:21:15.390 Connecting to 180.44.255.130 port 1080
. 2008-04-09 15:21:15.765 Server version: SSH-1.99-OpenSSH_4.3
. 2008-04-09 15:21:15.765 We claim version: SSH-2.0-WinSCP_release_3.8
. 2008-04-09 15:21:15.765 Using SSH protocol version 2
. 2008-04-09 15:21:19.531 Initialised AES-256 client->server encryption
. 2008-04-09 15:21:19.531 Initialised HMAC-SHA1 client->server MAC algorithm
. 2008-04-09 15:21:19.531 Initialised AES-256 server->client encryption
. 2008-04-09 15:21:19.531 Initialised HMAC-SHA1 server->client MAC algorithm
! 2008-04-09 15:21:19.906 Verwende Benutzername myUser .
. 2008-04-09 15:21:21.218 Keyboard-interactive authentication refused
. 2008-04-09 15:21:21.218 Session password prompt (myUser@222.20.146.238's password: 'XXXX' )
. 2008-04-09 15:21:21.218 Sent password
. 2008-04-09 15:21:21.609 Access granted
. 2008-04-09 15:21:22.750 Opened channel for session
. 2008-04-09 15:21:23.484 Started a shell/command
. 2008-04-09 15:21:23.484 --------------------------------------------------------------------------


Complete thread: