Jump to content


Photo
- - - - -

Setting up SSH on my Slack Box


  • Please log in to reply
13 replies to this topic

#1 Magnum I.P.

Magnum I.P.

    mad 1337

  • Members
  • 137 posts
  • Location:Delaware

Posted 29 June 2006 - 02:49 PM

I want to be able to setup SSH on my Slack Box so i can sign into the box anytime i need to when i am away from it with my windows laptop. I know of Putty for a client to use with my laptop. Is there any good sites that will explain how to setup SSH on my slack box for a *nix n00b? Or maybe some quick help here? Thanks.

#2 LogosX

LogosX

    rekcah-rebÜ

  • Moderating Team
  • 728 posts
  • Location:305

Posted 29 June 2006 - 03:24 PM

you should still find an article on it, but this should get you started.

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 nenn

nenn

    SUPR3M3 31337 Mack Daddy P1MP

  • Members
  • 459 posts
  • Location:New York City

Posted 29 June 2006 - 03:25 PM

try
ssh localhost
if that works ssh is on, if not do this
./etc/rc.d/rc.sshd start
that will start the ssh server locally, then
ssh localhost
will work fine, at least it should.

#4 tehbizz

tehbizz

    Progenitor of noob slaying

  • Members
  • 2,039 posts
  • Gender:Male

Posted 29 June 2006 - 03:58 PM

Make sure to use this directive and try to strictly enforce it:

Use PublicKeyAuthentication


#5 nullkraft

nullkraft

    SUP3R 31337 P1MP

  • Binrev Financier
  • 284 posts
  • Location:Think Heisenberg uncertainty principle.

Posted 29 June 2006 - 05:05 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.

#6 Enigma

Enigma

    HPR Overlord

  • Moderating Team
  • 839 posts
  • Country:
  • Gender:Male
  • Location:Florida

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 Magnum I.P.

Magnum I.P.

    mad 1337

  • Members
  • 137 posts
  • Location:Delaware

Posted 30 June 2006 - 12:45 PM

Well thanks for all the replies. I got it working now. I followed everything listed in this thread. Hopefully I dont do anything stupid that will get my box compromised. Thanks again all.

#8 Magnum I.P.

Magnum I.P.

    mad 1337

  • Members
  • 137 posts
  • Location:Delaware

Posted 16 January 2007 - 09:52 AM

I have a question. When I connect for the 1st time to my slack box, it asks me if I want to accept the key. After that, it doesn't ask me anymore for it and I get to a login prompt. Is that normal? I just wanna make sure I am secure so I can leave ssh on when I am away from home. Thanks

#9 crackedatom

crackedatom

    SUPR3M3 31337 Mack Daddy P1MP

  • Members
  • 428 posts
  • Location:Durban, South Africa

Posted 16 January 2007 - 11:36 AM

Doesn't it save the key to your current machine.
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 Magnum I.P.

Magnum I.P.

    mad 1337

  • Members
  • 137 posts
  • Location:Delaware

Posted 16 January 2007 - 12:05 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.

#11 Enigma

Enigma

    HPR Overlord

  • Moderating Team
  • 839 posts
  • Country:
  • Gender:Male
  • Location:Florida

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 Magnum I.P.

Magnum I.P.

    mad 1337

  • Members
  • 137 posts
  • Location:Delaware

Posted 17 January 2007 - 01:22 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.

#13 DarkCow

DarkCow

    I broke 10 posts and all I got was this lousy title!

  • Members
  • 18 posts

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 n3xg3n

n3xg3n

    "I Hack, therefore, I am"

  • Members
  • 960 posts
  • Country:
  • Gender:Male
  • Location:(703)

Posted 21 January 2007 - 01:21 PM

the first time you did it, it cached your server's key, if it comes up again, BEWARE: someone might be MITMing you...

-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!