PrintLogo

SSHD on GIAGD




The uClibc dev system includes SSHD, but you need to set up host keys in /etc first:

[root@crackers /]# ssh-keygen  -t dsa -f /etc/ssh_host_dsa_key
Generating public/private dsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /etc/ssh_host_dsa_key.
Your public kkey has been saved in /etc/ssh_host_dsa_key.pub.
The key fingerprint is:
xx:xx:xx:....:xx root@crackers
[root@crackers /]# chmod 600 /etc/ssh_host_dsa_key
[root@crackers /]# chmod 644 /etc/ssh_host_dsa_key.pub

Note that you will need to enable Unix98 PTY support in the kernel. This is under Character devices. You will also need to enable the /dev/pts file system for Unix98 PTYs in the file systems options.

Check out the memory usage and minimal processes running for crackers when one user is logged in as root via ssh. This has the camera module loaded as well:

Mem: 6644K used, 153364K free, 0K shrd, 328K buff, 2756K cached
Load average: 0.05, 0.01, 0.00    (State: S=sleeping R=running, W=waiting)
PID USER     STATUS   RSS  PPID %CPU %MEM COMMAND
50 root     R        332    45  0.1  0.2 top
43 root     S       1192    33  0.0  0.7 /usr/sbin/sshd
45 root     S        920    43  0.0  0.5 -sh
33 root     S        880     1  0.0  0.5 /usr/sbin/sshd
1 root     S        336     0  0.0  0.2 init
40 root     S        292     1  0.0  0.1 /sbin/syslogd
41 root     S        276     1  0.0  0.1 /sbin/klogd
39 root     S        244     1  0.0  0.1 /sbin/getty
38 root     S        244     1  0.0  0.1 /sbin/getty
42 root     S        244     1  0.0  0.1 /usr/bin/tail
7 root     SW         0     1  0.0  0.0 [khubd]
8 root     SW         0     1  0.0  0.0 [kjournald]
5 root     SW         0     1  0.0  0.0 [bdflush]
6 root     SW         0     1  0.0  0.0 [kupdated]
2 root     SW         0     1  0.0  0.0 [keventd]
3 root     SWN        0     1  0.0  0.0 [ksoftirqd_CPU0]
4 root     SW         0     1  0.0  0.0 [kswapd]





This article comes from NetAdminTools:
http://www.netadmintools.com/

The URL for this story is:
http://www.netadmintools.com/art267.html

Copyright 1997-2008 NetAdminTools.com. Read our Terms of Use.