Difference between revisions of "SSH Access - Almond+ 2014"

From SecuriWiki
Jump to: navigation, search
(Created page)
 
Line 3: Line 3:
 
The Almond+ supports Dropbear as it's SSH client.  By default it is only enabled on the LAN interface,  but you can open to all interfaces,  if you need remote access to it.  
 
The Almond+ supports Dropbear as it's SSH client.  By default it is only enabled on the LAN interface,  but you can open to all interfaces,  if you need remote access to it.  
  
# Numbered list item
+
# Access the Almond+ WebUI (default: http://192.168.1.1/
 
+
# Select the Management tile:
    Access the Almond+ WebUI (default: http://192.168.1.1/
+
# Enable SSH on the correct interface
# Numbered list item
+
    Select the Management tile:
+
# Numbered list item
+
    Enable SSH on the correct interface
+
  
 
     (Note I chose unspecified so it connects to all interfaces):
 
     (Note I chose unspecified so it connects to all interfaces):
# Numbered list item
+
# Test Dropbear to ensure you can gain access..
    Test Dropbear to ensure you can gain access..
+
 
     Here is code segment of my access from my Linux laptop.
 
     Here is code segment of my access from my Linux laptop.
  
<nowiki>pwilson@pwilsonlt:~$  
+
<nowiki>pwilson@pwilsonlt:~$<br>
pwilson@pwilsonlt:~$  
+
pwilson@pwilsonlt:~$ <br>
pwilson@pwilsonlt:~$ pwd
+
pwilson@pwilsonlt:~$ pwd<br>
/home/pwilson
+
/home/pwilson<br>
pwilson@pwilsonlt:~$ id  
+
pwilson@pwilsonlt:~$ id <br>
uid=1001(pwilson) gid=1002(pwilson) groups=1002(pwilson),27(sudo),139(wireshark)
+
uid=1001(pwilson) gid=1002(pwilson) groups=1002(pwilson),27(sudo),139(wireshark)<br>
pwilson@pwilsonlt:~$ ssh root@almondplus
+
pwilson@pwilsonlt:~$ ssh root@almondplus<br>
 
+
<br>
 
+
<br>
BusyBox v1.17.3 (2014-03-11 18:45:01 IST) built-in shell (ash)
+
BusyBox v1.17.3 (2014-03-11 18:45:01 IST) built-in shell (ash)<br>
Enter 'help' for a list of built-in commands.
+
Enter 'help' for a list of built-in commands.<br>
 
+
<br>
  ______  _      __  __  _____  __  _  ____      __  
+
  ______  _      __  __  _____  __  _  ____      __ <br>
|  __  | | |    |  \/  | |  _  | |  \ | | |  _ \  __|  |__  
+
|  __  | | |    |  \/  | |  _  | |  \ | | |  _ \  __|  |__<br>
| |__| | | |    |      | | | | | |  \| | | | \ \ |        |  
+
| |__| | | |    |      | | | | | |  \| | | | \ \ |        |<br>
|  __  | | |__  | |\/| | | |_| | | |\  | | |_/ / |__    __|  
+
|  __  | | |__  | |\/| | | |_| | | |\  | | |_/ / |__    __|<br>
|_|  |_| |____| |_|  |_| |_____| |_| \__| |____/    |__|  
+
|_|  |_| |____| |_|  |_| |_____| |_| \__| |____/    |__| <br>
 +
<br>
 +
S E C U R I F I  Home Automation<br>
 +
root@AlmondPlus:~$ pwd<br>
 +
/root<br>
 +
root@AlmondPlus:~$ id<br>
 +
uid=0(root) gid=0(root)<br>
 +
root@AlmondPlus:~$ exit<br>
 +
Connection to almondplus closed.<br>
 +
pwilson@pwilsonlt:~$ id<br>
 +
uid=1001(pwilson) gid=1002(pwilson) groups=1002(pwilson),27(sudo),139(wireshark)<br>
 +
pwilson@pwilsonlt:~$ pwd<br>
 +
/home/pwilson<br>
 +
pwilson@pwilsonlt:~$<br?</nowiki>
  
S E C U R I F I Home Automation
+
   
root@AlmondPlus:~$ pwd
+
/root
+
root@AlmondPlus:~$ id
+
uid=0(root) gid=0(root)
+
root@AlmondPlus:~$ exit
+
Connection to almondplus closed.
+
pwilson@pwilsonlt:~$ id
+
uid=1001(pwilson) gid=1002(pwilson) groups=1002(pwilson),27(sudo),139(wireshark)
+
pwilson@pwilsonlt:~$ pwd
+
/home/pwilson
+
pwilson@pwilsonlt:~$</nowiki>
+
  
 
     [/li]
 
     [/li]

Revision as of 04:46, 21 March 2014

HOW-TO: SSH access to Almond+

The Almond+ supports Dropbear as it's SSH client. By default it is only enabled on the LAN interface, but you can open to all interfaces, if you need remote access to it.

  1. Access the Almond+ WebUI (default: http://192.168.1.1/
  2. Select the Management tile:
  3. Enable SSH on the correct interface
   (Note I chose unspecified so it connects to all interfaces):
  1. Test Dropbear to ensure you can gain access..
   Here is code segment of my access from my Linux laptop.

pwilson@pwilsonlt:~$<br> pwilson@pwilsonlt:~$ <br> pwilson@pwilsonlt:~$ pwd<br> /home/pwilson<br> pwilson@pwilsonlt:~$ id <br> uid=1001(pwilson) gid=1002(pwilson) groups=1002(pwilson),27(sudo),139(wireshark)<br> pwilson@pwilsonlt:~$ ssh root@almondplus<br> <br> <br> BusyBox v1.17.3 (2014-03-11 18:45:01 IST) built-in shell (ash)<br> Enter 'help' for a list of built-in commands.<br> <br> ______ _ __ __ _____ __ _ ____ __ <br> | __ | | | | \/ | | _ | | \ | | | _ \ __| |__<br> | |__| | | | | | | | | | | \| | | | \ \ | |<br> | __ | | |__ | |\/| | | |_| | | |\ | | |_/ / |__ __|<br> |_| |_| |____| |_| |_| |_____| |_| \__| |____/ |__| <br> <br> S E C U R I F I Home Automation<br> root@AlmondPlus:~$ pwd<br> /root<br> root@AlmondPlus:~$ id<br> uid=0(root) gid=0(root)<br> root@AlmondPlus:~$ exit<br> Connection to almondplus closed.<br> pwilson@pwilsonlt:~$ id<br> uid=1001(pwilson) gid=1002(pwilson) groups=1002(pwilson),27(sudo),139(wireshark)<br> pwilson@pwilsonlt:~$ pwd<br> /home/pwilson<br> pwilson@pwilsonlt:~$<br?


   [/li]


You'll note that it did not prompt for the "root" password. This is because I took the time to add my Laptop's SSH Public key to the Routers


Both OS X and Linux provide an "SSH" command, which can be accessed from "Terminal", "XTerm" etc. Microsoft isn't so kind, but Windows users can download PuTTY (a freely available SSH client for multiple platforms) and use that as the SSH client.


http://forum.securifi.com/index.php/topic,886.msg1922/topicseen.html#msg1922