It is currently Fri Sep 10, 2010 10:50 am


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to run SSH server on Linux Microcore
PostPosted: Sun Jul 11, 2010 12:03 am 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 259
Location: Slovakia
Hi,

this is a tutorial how to run SSH server on Linux Microcore. These are the steps:

1. Start Microcore with Qemu

qemu ./linux-microcore-2.11.5.img

After boot you should see a prompt.

2. Check if openssh extension is installed

ls /mnt/hda1/tce/optional/openssh*
/mnt/hda1/tce/optional/openssh.tcz
/mnt/hda1/tce/optional/openssh.tcz.dep
/mnt/hda1/tce/optional/openssh.tcz.md5.txt

If you can't see the files above you should get them first. Run this command in terminal:

tc-load -w openssh

Make openssh extension being loaded during the boot of Microcore Linux:

echo "openssh.tcz" >> /mnt/hda1/tce/onboot.lst


3. Start openssh daemon (as a root)

/usr/local/etc/init.d/openssh start

You can see is an error message about missing sshd-config configuration file. So we need to create it.

mv /usr/local/etc/ssh/sshd_config.example /usr/local/etc/ssh/sshd_config

If you don't edit sshd_config file all the uncomment lines are used by default by opennssh deamon . Now we may run openssh again.

/usr/local/etc/init.d/openssh start

First time you successfully start openssh daemon, the public/private rsa key pair and public/private dsa key are generated.

4. Automatic start openssh deamon after boot of Microcore

echo "/usr/local/etc/init.d/openssh start" >> /opt/bootlocal.sh

5. Backup of configuration directory "/usr/local/etc/ssh"

echo "/usr/local/etc/ssh" >> /opt/.filetool.lst
/usr/bin/filetool.sh backup

6. Test ssh server (password is root)

ssh root@localhost

You should be able to login now.

This is the end of tutorial.

This is the qemu image with linux-microcore-2.11.5.img enabled for ssh server. D-ITG [Internet traffic Generator] is also included and available in "/home/tc/bin" directory

Quote:
http://rapidshare.com/files/406232944/linux-microcore-2.11.5.img.html


Cheers,





_________________
Brezular


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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
You cannot post attachments in this forum

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

phpBB SEO