You are not logged in.

#1 2004-07-15 19:39:55

jbsnake
Member
Registered: 2004-04-26
Posts: 23

sshd

anyone know of a step-by-step way to install and configure an ssh server for basic use?

Offline

#2 2004-07-15 22:03:07

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: sshd

When I first read your post I was a little annoyed that you hadn't looked at the million of google search results there must be for such a simple query... however, I tried several queries on google and TLDP.org, and didn't find anything too promising... apparently there aren't many nice clear HOWTO's on the subject (but by golly, there should be!). All I can suggest is man sshd, also search the forum, I've seen some informal howtos posted here.

If you do find a good link it would be helpful to post it to the WHERETO in the wiki; if you don't find a link, it would be helpful to post the procedure to the wiki once you get it figured out.

My guess is it should be pretty simple:
edit hosts.allow and hosts.deny
add sshd to the list of DAEMONS in rc.conf
start sshd
test

I've never done it though... but if it is that simple, that would explain why there aren't any howtos. smile

Dusty

Offline

#3 2004-07-15 22:44:18

jbsnake
Member
Registered: 2004-04-26
Posts: 23

Re: sshd

if only it were that easy...i guess the biggest problem i've been having is it not wanting to run because of the 'keys' not being produced, and it they are being produced, not being in the proper areas...i guess my search continues smile

Offline

#4 2004-07-16 00:59:13

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: sshd

Keys are more a client side thing, I believe, and I also don't think they are necessary, as you should be able to SSH without the keys; you can use a password.

Google will help with key generation. Basically you generate a key and copy part of it into /home/username/.ssh on the server machine, and put the other part in ~/.ssh on the machine you want to log in from... I think.

Dusty

Offline

#5 2004-07-16 02:53:28

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: sshd

Dusty is close, but there are two types of keys.  The openssh server should create its own keys, when you run /etc/rc.d/sshd.  If it doesn't what's the error message and we can help with that.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#6 2004-07-16 04:19:02

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: sshd

here's one of my favorite ssh pages -- simple + easy = usable big_smile :
http://www.suso.org/linux/tutorials/ssh.phtml

also check out the excellent ssh faq linked at the bottom.

Offline

#7 2004-07-16 06:47:38

jbsnake
Member
Registered: 2004-04-26
Posts: 23

Re: sshd

to try and keep from looking completely retarded...
didn't the ssh daemon use to allow you to connect multiple clients without having their public keys added to their "authorized_keys" file?
or am just losing it  roll

the error message i'm getting is

ssh_exchange_identification: Connection closed by remote host

at first it was erroring when i was trying to start the daemon...after looking closely i realized ssh-keygen was creating a key with a different name than what sshd was looking for (i.e. ssh_host_dsa-key.pub vs. ssh_host_dsa_key.pub)

Offline

#8 2004-07-16 08:27:09

Mindaugas
Member
From: Ireland
Registered: 2004-03-25
Posts: 95

Re: sshd

I had the same problem :

ssh_exchange_identification: Connection closed by remote host 

edit hosts.allow and hosts.deny
I comment in /etc/hosts.deny and now works fine.
But I dont know is it good to comment only in host.deny

Offline

#9 2004-07-16 09:42:11

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: sshd

It's much easier to search for a problem solution when you have the error messages:
http://www.google.com/search?q="ssh_exc … te%20host"
http://groups.google.com/groups?q=%22ss … &scoring=d

BTW: short guide for ssh setup http://www.yolinux.com/TUTORIALS/LinuxT … y.html#SSH

Offline

#10 2004-07-17 05:13:50

jbsnake
Member
Registered: 2004-04-26
Posts: 23

Re: sshd

beautiful Mindaugas...
thanks o so much...now i can use my home server from school so much better smile

Offline

#11 2004-07-20 05:09:12

colnago
Member
From: Victoria, BC
Registered: 2004-03-25
Posts: 438

Re: sshd

I hope you have it going.  Might I suggest you add a line to allow only specific users access in/etc/ssh/sshd_config:

AllowUsers user1 user2

You can also DenyUsers here, but that is redundant, as AllowUsers implies DenyUsers to all those not listed.

Offline

Board footer

Powered by FluxBB