
3rd February 2011, 09:42
|
|
Junior Member
|
|
Join Date: Nov 2009
Posts: 27
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Can't set sshd-parameter PermitTunnel
Hello,
I have an CentOS 5.5 64-Bit Server which provides an apache, mysql, postfix and so on.
Now i tried to customize sshd-config /etc/ssh/sshd_config a little bit. I want to enable PermitTunnel. But after removing the trailing #, sshd does not start anymore.
Error-Message:
Quote:
sshd starten: /etc/ssh/sshd_config: line 104: Bad configuration option: PermitTunnel
/etc/ssh/sshd_config: terminating, 1 bad configuration options
[FEHLGESCHLAGEN]
|
What can I do to fix this? I have a second webserver with the same os installed and there it works.
sshd-Version (on both servers):
Name : openssh-server
Arch : x86_64
Version : 4.3p2
Release : 41.el5_5.1
Why does sshd not know this option?
|

4th February 2011, 14:32
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Can you post your /etc/ssh/sshd_config?
|

4th February 2011, 14:37
|
|
Junior Member
|
|
Join Date: Nov 2009
Posts: 27
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Of course:
Code:
# $OpenBSD: sshd_config,v 1.73 2005/12/06 22:38:28 reyk Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.
#Port 22
#Protocol 2,1
Protocol 2
#AddressFamily any
#ListenAddress 0.0.0.0
ListenAddress 0.0.0.0:59725
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768
# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
SyslogFacility AUTHPRIV
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6
#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
PasswordAuthentication yes
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
ChallengeResponseAuthentication no
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication mechanism.
# Depending on your PAM configuration, this may bypass the setting of
# PasswordAuthentication, PermitEmptyPasswords, and
# "PermitRootLogin without-password". If you just want the PAM account and
# session checks to run without PAM authentication, then enable this but set
# ChallengeResponseAuthentication=no
#UsePAM no
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#ShowPatchLevel no
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no
# no default banner path
#Banner /some/path
# override default of no subsystems
Subsystem sftp /usr/libexec/openssh/sftp-server
|

5th February 2011, 12:52
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
According to http://translate.google.com/translat...-usando-ssh%2F , your SSHd version is too old. Do you maybe have two SSH daemons installed, and the older one is running?
|

5th February 2011, 14:09
|
|
Junior Member
|
|
Join Date: Nov 2009
Posts: 27
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
No, I only have this version mentioned above installed.
|

6th February 2011, 20:38
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Hm...
What's the output of on both servers?
|

7th February 2011, 08:21
|
|
Junior Member
|
|
Join Date: Nov 2009
Posts: 27
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Where it works: Permissive
Where it does not work: Disabled
Hm, vice versa it would have been more logical?!
|

8th February 2011, 19:50
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
That's strange. Does it work if you set it from disabled to permissive?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 04:49.
|
Recent comments
19 hours 38 min ago
1 day 5 hours ago
1 day 5 hours ago
1 day 9 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 16 hours ago
2 days 2 hours ago
2 days 7 hours ago
2 days 8 hours ago