You are not logged in.

#1 2004-07-06 07:51:14

vinyl
Member
Registered: 2004-07-06
Posts: 33

How to configure openssh

I have just installed the package of openssh.

But now it needs configuring.
I havent got a clue on how to do this. I know I have to generate keys etc. Is there some guide on how to do this for Arch Linux?

Thanks in advance.

Offline

#2 2004-07-06 10:25:43

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: How to configure openssh

When you first run the sshd daemon, the startup script will generate your host keys.  Use ssh-keygen (see the man page) to generate public/private keys for users.  Note that user keys aren't required if you're happy with user/password authentication.

Check out the sshd configuration file /etc/ssh/sshd_config too.  Most settings are defaults and commented out.  Some suggestions: use protocol 2 only, disable root logins, decide if you want to tunnel X, etc.

Offline

#3 2004-07-06 10:47:43

vinyl
Member
Registered: 2004-07-06
Posts: 33

Re: How to configure openssh

Ah ok thanks, well tunnelling X wont be necessary cause I havent got X running.

edit:
Well I got it installed and the deamon is running but when I try to connect with Putty from my windows desktop nothing happens  roll

Keys are generated. Deamon is running and I didnt change a thing in the config file. What could be wrong?

Offline

#4 2004-07-06 11:15:58

farphel
Forum Fellow
From: New Hampshire - USA
Registered: 2003-09-18
Posts: 250
Website

Re: How to configure openssh

Check your /etc/hosts.deny file.  You most likely have the default DENY all traffic rule enabled.

HTH,
farphel


Follow the link below, sign up, and accept one promotional offer.  If I can get five suckers (err... friends) to do this, I'll get a free iPod.  Then you too can try to get a free iPod. Thanks! http://www.freeiPods.com/?r=11363142

Offline

#5 2004-07-06 11:20:51

vinyl
Member
Registered: 2004-07-06
Posts: 33

Re: How to configure openssh

O boy, that works. Learned something again.

I "#" the rule. Is there something important to replace it with?

Offline

#6 2004-07-06 15:29:23

farphel
Forum Fellow
From: New Hampshire - USA
Registered: 2003-09-18
Posts: 250
Website

Re: How to configure openssh

That depends on what you have running and if/how you want to restrict access to your network services.

type 'man 5 hosts_access' at your prompt to read up on tcp wrappers.


Follow the link below, sign up, and accept one promotional offer.  If I can get five suckers (err... friends) to do this, I'll get a free iPod.  Then you too can try to get a free iPod. Thanks! http://www.freeiPods.com/?r=11363142

Offline

#7 2004-07-07 04:04:00

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: How to configure openssh

You can also use IPs or network ranges to be less permissive than "ALL".  smile  I use:

sshd: 10.0.0.0/255.255.255.0

This allows access from any client on a 10.0.0.x private network.

Offline

#8 2004-07-07 21:26:07

luigi
Member
Registered: 2004-07-02
Posts: 29

Re: How to configure openssh

kpiche wrote:

You can also use IPs or network ranges to be less permissive than "ALL".  smile  I use:

sshd: 10.0.0.0/255.255.255.0

This allows access from any client on a 10.0.0.x private network.

Would this be the same as:

10.0.0.0/24

I'm a bit hazy on the whole net masking thing.

Offline

#9 2004-07-07 23:12:44

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

Re: How to configure openssh

luigi wrote:

Would this be the same as:

10.0.0.0/24

I'm a bit hazy on the whole net masking thing.

Yes


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

Board footer

Powered by FluxBB