Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: remus on March 15, 2011, 11:43:01 PM
-
Hi all,
Thought I'd try to setup openssh to access a print server i'm trying to setup.
i've installed the openssh extension
openssh.tcz is visable in the onboot items window in AppsAudit Tool
When the pc boots up, and I run the services tool, openssh is available but turned off, if I click on openssh in the services tool I can turn it on and off. Whilt its turned on, I tried to access the server from another windows client using putty with root@10.1.1.202 but got an error message (Network Error: connection refused)
I hunted around the forum and found a few tips about adding /usr/local/etc/init.d/openssh start
to /opt/bootlocal.sh but this did not work on reboot
I tried running sudo /usr/local/etc/init.d/openssh start
from the terminal and got the following error Config file /usr/local/etc/ssh/sshdd_config not found
Any suggestions welcome
-
Hi remus
Check the info tab for openssh in appbrowser, it contains instructions about the config files.
-
Thanks Rich,
I'll check it out when I get to work tomorrow. Will post update
-
Hi: I also ran into some problems while trying to get ssh working. Here is what I did:
1) install openssl-0.9..tcz and openssh.tcz
2) search for the config files in /usr/local/etc/ssh
there should be two files:
ssh_config.example and sshd_config.example
3) copy these over as ssh_config and sshd_config
4) now start editing these files
5) start with:
$ sudo /usr/local/etc/init.d/openssh start
6) check out which password is required
7) make sure that ssh config files are kept permanent by adding them to /opt/.filetool.lst
8) test it while trying to ssh into your own machine:
$ ssh tc@localhost
If you need more detailed info please let me know or somebody else can jump in here and add
some more detailed or even better info.
-
Hi beerstein, sorry for the late replay, i've been distracted with some other projects.
I just got back to this one and had a crack following your directions.
I skipped step 4 as its my first time looking at the files and thought i'd have a quick try without reading.
So i started the server with your instructions at step 5.
Not sure about step 6 as in the past i use username and password to access via ssh into debian.
I can use ssh tc@localhost ok
I can also use putty from windows to access the virtual machine i'm testing vmware on at home ok with root@192.168.157.133 and no problems :)
I am guessing that by leaving the sshd_config file default is a bit of a security risk, but its working, i will make time in the months ahead to lean more about hand coding that file.
Thanks for your easy to follow guide :)
Just my opinion, but perhaps openssh would be a good one for the wiki ???
I have a plan of leaning how to setup a tinycore or better yet, microcore print server with the custom settings files on the same CD as tinycore/microcore, the server would not even need a hard drive.
-
I am unable to copy the two example files.
Please elaborate steps for newbies
Thans
-
ok I found the method to copy the files
sudo cp ssh_config.example ssh_config
sudo cp sshd_config.example sshd_config
worked for me.