Setting up SSH on my Slack Box
#1
Posted 29 June 2006 - 02:49 PM
#2
Posted 29 June 2006 - 03:24 PM
Slackware usually already has ssh installed so you just need to start it.
As root run sshd or if you want it to run every time you boot chmod 755 /etc/rc.d/rc.ssh and then /etc/rc.d/rc.ssh start
the deamon is now started, but has a default configuration.
so you need to edit the /etc/ssh/sshd_config file
turn off root login
only use Protocol 2
change the default port
dont allow empty passwords
restart the deamon for the changes to take effect
/etc/rc.d/rc.sshd restart
#3
Posted 29 June 2006 - 03:25 PM
ssh localhostif that works ssh is on, if not do this
./etc/rc.d/rc.sshd startthat will start the ssh server locally, then
ssh localhostwill work fine, at least it should.
#4
Posted 29 June 2006 - 03:58 PM
Use PublicKeyAuthentication
#5
Posted 29 June 2006 - 05:05 PM
#6
Posted 29 June 2006 - 11:38 PM
Two more things. Setup ssh for password-less logins using dsa keys and if you have a router you need to setup port forwarding to your ssh server.
And the port is 22 if you wanted to know just set up portforwarding to point to that box and you should be set
-Enigma
#7
Posted 30 June 2006 - 12:45 PM
#8
Posted 16 January 2007 - 09:52 AM
#9
Posted 16 January 2007 - 11:36 AM
I haven't used putty in a while...But I think that's what it does, and then it doesn't require you to accept it again because you already have it.
#10
Posted 16 January 2007 - 12:05 PM
#11
Posted 16 January 2007 - 12:53 PM
Yes I am using Putty from my Windows laptop. It asks me if I want to save the key and I did. I just want to make sure that this is secure enough to leave ssh open on my box at home.
as long as your absolutely sure that key is comming from your machine then yes you can accept it
-Enigma
#12
Posted 17 January 2007 - 01:22 AM
#13
Posted 21 January 2007 - 11:58 AM
So people can stumble upon my ip address and get the key? Is that safe? I am a little paranoid to leave ssh open on my box unless its secure enough to leave as such. I did everything LogosX explained in a previous post. I'm not sure this is enough. It seems too simple that all I have to do is accept the key from my machine, then login with the username and password and all of this is safe to leave open on my box.
It's safe. Read up on PKI. The key that you accepted was the server's public key. That is used to encrypt data that only the server with its private key can decrypt. As long as you have a decent password, you'll be fine.
#14
Posted 21 January 2007 - 01:21 PM
-edit- Sorry, i only looked at the person above me's post date, not that he did it from a month back =[ srry
Edited by n3xg3n, 21 January 2007 - 01:22 PM.
BinRev is hosted by the great people at Lunarpages!












