[Gambas-user] Gambas SSH
    Kai 
    kai at ...1127...
       
    Thu Sep 15 22:07:03 CEST 2005
    
    
  
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
Any one know how to get gambas to use ssh?
im stuck im using a socket some thing along the lines of this:
DIM command AS String
   DIM name AS String
   'DIM pass AS String
   DIM ip AS String
   name = txtUserName.Text
   ip = txtServerIp.Text
   command = "/usr/bin/ssh"
' This should make the ssh connection using a client socket protocol ?
  SELECT CASE sshProtocol
    CASE 0 ' This will get every thing ready for a connection to server
      MySock.Host = ip
      MySock.Port = (22)
      'MySock.Id = Val(txtUserName.Text)
      MySock.Connect()
    CASE 1 ' This will make a connection to the server
      MySock.Path = ip
      MySock.Port = Net.Local
      MySock.Id = name
      MySock.Connect(name, "@", ip, command) 'Dont know if this works yet?
  END SELECT
i dont think its working
thanks for any help
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDKdRnw4vrCsJF5ScRAvF/AJ0cu76j78o7/iweiNRXDiQvx9frcQCgwgkj
0nzo5YFLzua7Pk+SaXNMSqc=
=d+NV
-----END PGP SIGNATURE-----
    
    
More information about the User
mailing list