Arduino SSH

Hi, for a project I'm working on I have a nice little telnet server running however, as anyone knows telnet is not secure much at all. But something like SSH is very secure. Does anyone know if it's possible to get a ssh server running on the arduino? has anyone ever heard of anyone doing this?

thanks

Considering the compiled size of this:

http://matt.ucc.asn.au/dropbear/dropbear.html

...and that of a commercial version of SSH:

http://www.mocana.com/nanossh-landinge.html

...you might have a snowball's chance on the Mega, but not on the standard Arduino.

If you're really concerned about communications security, something you might try is a simple public/private key encryption scheme; use the Arduino to encrypt the data with the public key before sending it to the machine you're communicating with, then on that end, use the private key to decrypt. Reverse this to go the other way.

It should be possible to implement such a scheme as a library on the Arduino in a fairly small manner; there are small javascript-based public/private key encryption demonstrations out there that could be used as a basis for this.

[edit]For instance (may or may not be the best example):

http://shop-js.sourceforge.net/crypto2.htm[/edit]

[edit]Here's another: PGP / GnuPG/ Open PGP Message Encryption in JavaScript

Just google "javascript public private key encryption" for more info...[/edit]

I really like your idea on the public/private key communication. Only problem is that Im really quite new to arduino coding. the stuff you gave me was all javascript type stuff, but as far as i know the arduino cant run javascripts. is there some native arduino command that will encrypt and decrypt the incoming/outgoing data?

I really like your idea on the public/private key communication. Only problem is that Im really quite new to arduino coding.

New to Arduino coding (ie, C/C++) - or coding in general?

the stuff you gave me was all javascript type stuff, but as far as i know the arduino cant run javascripts.

No it can't - I was suggesting a conversion from the javascript algorithm to a C/C++ algorithm. The syntax between the two are similar (though -not- identical); the general idea of PK encryption, though, is portable. But if you don't have some experience in conversion of code between languages (and/or have no familiarity with the languages themselves), then it is probably outside your skill level.

is there some native arduino command that will encrypt and decrypt the incoming/outgoing data?

Nothing "native" that I know of - but there are AVR and Arduino libraries for various encryption methods floating around out there; you might be able to find something already pre-written (of course, you would need something similar on the PC side as well).

:slight_smile: