Go Down

Topic: Arduino SSH (Read 17614 times) previous topic - next topic

phinsil6

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

keeper63

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.
I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

keeper63

#2
Jan 15, 2011, 07:40 am Last Edit: Jan 15, 2011, 07:44 am by keeper63@cox.net Reason: 1
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: http://www.hanewin.net/encrypt/

Just google "javascript public private key encryption" for more info...[/edit]
I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

phinsil6

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?

keeper63

Quote
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?

Quote
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.

Quote
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).

:)
I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Go Up