Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Dec 13, 2018 11:53 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: SSH Class
PostPosted: Wed Aug 22, 2012 5:06 pm 
Offline

Joined: Mon Jul 02, 2007 12:38 pm
Posts: 62
Does Realbasic has a class or library that allows you to use Realbasic as a SSH client?

I have always seen a huge opportunity for developers of Realbasic to create GUI programs to manage anything that can be access via SSH. Like routers, switches, etc. Most of these devices rely on a Command Line Interface (CLI) to be managed. It would be nice if we can have a class that we can use to be able to talk to these SSH devices.

Just imagine a really nice Realbasic GUI utility to do basic tasks on a Cisco router. Millions of average network administrators would buy something like that.

I have done a searched on a class or even a .dll library for SSH for Realbasic to no avail.

Is there a SSH class for Realbasic? any options out there?? I also checked Monkeybread and I didn't see one.


Thanks!!


Top
 Profile  
Reply with quote  
 Post subject: Re: SSH Class
PostPosted: Thu Aug 23, 2012 2:19 am 
Offline

Joined: Tue Feb 14, 2012 5:39 am
Posts: 99
Location: Austria
The best solution is to use ssh (mac/unix) or plink (win) over a Shell class.
And even since 2012r1 RS fixed a Bug where you couldn't send a ctrl-C to the shell (and therefor over ssh).

I'm currently working on a project which uses this approach, and it's working pretty well.


Top
 Profile  
Reply with quote  
 Post subject: Re: SSH Class
PostPosted: Thu Aug 23, 2012 6:37 am 
Offline
User avatar

Joined: Wed Oct 06, 2010 10:25 am
Posts: 154
Location: ---
arthofer wrote:
The best solution is to use ssh (mac/unix) or plink (win) over a Shell class.
And even since 2012r1 RS fixed a Bug where you couldn't send a ctrl-C to the shell (and therefor over ssh).

I'm currently working on a project which uses this approach, and it's working pretty well.

Oh, very well, maybe you can help me.
I have to use some commands in an authorized (root/sudoers) shell
I know there is a an authorized_shell class for mac (using calls to dynamic libs)
I have to accomplish a similar task in linux , can you help me ?
Thanks,
Massimiliano.

_________________
Massimiliano Fabbri
Freelance Senior Programmer
(Eudosia Systems)
Visual Basic 6 - RealStudio - Mobile Development
Php5/Mysql - Dot Net C# - Objective C
-------------------------------------------
http://www.eudosia-systems.it


Top
 Profile  
Reply with quote  
 Post subject: Re: SSH Class
PostPosted: Thu Aug 23, 2012 8:06 am 
Offline

Joined: Tue Feb 14, 2012 5:39 am
Posts: 99
Location: Austria
I'm not sure, but it should work that you execute "su" or "sudo su" followed by the right password to gain a root shell?

Very simplified, if you writeLine the following strings to a console, you should be connected to the remote host as su.
"ssh user@machine"
"y" (only if it propmpts if you want to store the ssh key)
"<password>"
"su"
"<su password>"


Top
 Profile  
Reply with quote  
 Post subject: Re: SSH Class
PostPosted: Thu Aug 23, 2012 8:33 am 
Offline

Joined: Mon May 31, 2010 5:35 am
Posts: 2412
Location: Netherlands
MBS curl would that work?

_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins)
For Dutch User Groups ask me to enter!


Top
 Profile  
Reply with quote  
 Post subject: Re: SSH Class
PostPosted: Thu Aug 23, 2012 11:03 am 
Offline
User avatar

Joined: Mon Feb 05, 2007 5:21 pm
Posts: 600
Location: New York, NY
eudosia wrote:
I have to use some commands in an authorized (root/sudoers) shell
I know there is a an authorized_shell class for mac (using calls to dynamic libs)
I have to accomplish a similar task in linux , can you help me ?

I have such a class called SudoShell. Send me a PM with your e-mail address and I'll send it to you.

_________________
Kem Tekinay
MacTechnologies Consulting
http://www.mactechnologies.com/

Need to develop, test, and refine regular expressions? Try RegExRX.


Top
 Profile  
Reply with quote  
 Post subject: Re: SSH Class
PostPosted: Tue Dec 11, 2012 11:31 am 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
Youre looking for a telnet class ...see the real studio Developer's library to acquire the classes and demo apps. Or you can google "REALbasic telnet"

With telnet, you can connect to mail servers, ssh, mysql, ...anything with a port and issue and receive commands from the server and 'react' accordingly.

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group