Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 21 Aug 2019, 03:46
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to setup OpenSSH-Demon correctly?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Spindoctor


Joined: 15 Jul 2006
Posts: 118
Location: Vienna, Austria

PostPosted: Sat 22 Dec 2007, 19:42    Post subject:  How to setup OpenSSH-Demon correctly?
Subject description: Installed openssh-4.7p1.pet but can't make it work...
 

Hi!
Glad to be back in the world of Puppy Linux!

I downloaded Wolf Pup's openssh-4.7p1.pet (from this thread), but I am not able to make it work...

When I first started sshd it said
Code:
# /usr/sbin/sshd -D -dd
debug2: load_server_config: filename /usr/local/etc/sshd_config
/usr/local/etc/sshd_config: No such file or directory

I searched for sshd_config and found it in /usr/etc.
Therefore my second step was this one:
Code:
# /usr/sbin/sshd -D -dd -f /usr/etc/sshd_config
debug2: load_server_config: filename /usr/etc/sshd_config
debug2: load_server_config: done config len = 172
debug2: parse_server_config: config /usr/etc/sshd_config len 172
debug1: sshd version OpenSSH_4.7p1
Privilege separation user sshd does not exist

Google told me to change /etc/passwd and /etc/group
I added to lines in /etc/passwd
Code:
sshd:x:74:74:Privilege-separated #ssh
SSH:/var/empty/sshd:/sbin/nologin #ssh

and one line to /etc/group
Code:
etc/group:sshd:*:27: #ssh

Now sshd says
Code:
# /usr/sbin/sshd -D -dd -f /usr/etc/sshd_config
debug2: load_server_config: filename /usr/etc/sshd_config
debug2: load_server_config: done config len = 172
debug2: parse_server_config: config /usr/etc/sshd_config len 172
debug1: sshd version OpenSSH_4.7p1
Could not load host key: /usr/local/etc/ssh_host_rsa_key
Could not load host key: /usr/local/etc/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.

and I don't know what to do anymore.

[edit]
Okay, I had to generate hostkeys first. I did this with
Quote:
ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N ""
ssh-keygen -t rsa -f /usr/local/etc/ssh_host_rsa_key -N ""
ssh-keygen -t dsa -f /usr/local/etc/ssh_host_dsa_key -N ""

Just as discribed here

Still there is an error message
Code:
# /usr/sbin/sshd -D -dd -f /usr/etc/sshd_config
debug2: load_server_config: filename /usr/etc/sshd_config
debug2: load_server_config: done config len = 172
debug2: parse_server_config: config /usr/etc/sshd_config len 172
debug1: sshd version OpenSSH_4.7p1
debug1: read PEM private key done: type DSA
debug1: private host key: #0 type 2 DSA
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-D'
debug1: rexec_argv[2]='-dd'
debug1: rexec_argv[3]='-f'
debug1: rexec_argv[4]='/usr/etc/sshd_config'
debug2: fd 3 setting O_NONBLOCK
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
socket: Address family not supported by protocol

What to do now?

Can anybody help me please?

Thank you!

[edit]
could also be that it's working now... i'll do some more testing

[edit]
okay, it seems to work with windowsxp and putty.
last thing is that I don't get xming running with it.

When I find the time I might write a how-to, so please tell me if some of my changes could be done better.

[edit]
finally got even xming running.
really cool!
now that it doesn't have to care for displaying anymore, my old pII233 runs like hell!

still, if there are any improvements on my solution, please let me know - perhaps i'll write a howto.
Back to top
View user's profile Send private message 
ICQ Number 
Wolf Pup

Joined: 27 Apr 2006
Posts: 637

PostPosted: Sat 22 Dec 2007, 23:36    Post subject:  

try the openssh from http://puppylinux.ca/bugs its updated with an menu entry, and only root or a new created user can login, openssh needs tinylogin.
_________________

Visit The Repository - Helpful and hard-to-find treats for Puppy 3.
Click Here for Puppy Support Chat, + Helpful Links.
Back to top
View user's profile Send private message 
Spindoctor


Joined: 15 Jul 2006
Posts: 118
Location: Vienna, Austria

PostPosted: Sun 23 Dec 2007, 17:24    Post subject:  

okay, thank you!

It's running now anyway, but do you think I wouldn't need all my changes with this dotpet?
Back to top
View user's profile Send private message 
ICQ Number 
mrd

Joined: 27 Nov 2007
Posts: 124

PostPosted: Sat 26 Apr 2008, 22:36    Post subject:  

I followed these instructions and I was able to ssh into my machine, but after I got that working, I was not able to scp any files out or in to the same machine. The scp stuff all worked fine before I installed the ssh .pet.


Has anyone developed .pet or .pup that just makes this all work???

Please...
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0379s ][ Queries: 11 (0.0071s) ][ GZIP on ]