You are not logged in.
Pages: 1
anyone know of a step-by-step way to install and configure an ssh server for basic use?
Offline
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.
Dusty
Offline
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
Offline
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
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
here's one of my favorite ssh pages -- simple + easy = usable :
http://www.suso.org/linux/tutorials/ssh.phtml
also check out the excellent ssh faq linked at the bottom.
Offline
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
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
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
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
beautiful Mindaugas...
thanks o so much...now i can use my home server from school so much better
Offline
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
Pages: 1