|
|
sshd_config issues
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2007
Status:
Offline
|
|
I'm trying to access my G4 via my MBP with remote login. However I receive an error when I use the ssh command ssh [email protected]
ssh_exchange_identification: Connection closed by remote host
I checked the logs and this is what it gave me:
Oct 7 09:42:02 m-PowerBook-G4 sshd[415]: error: /etc/sshd_config: line 35: Bad configuration option: \342
Oct 7 09:42:02 m-PowerBook-G4 sshd[415]: error: /etc/sshd_config: line 69: Bad configuration option: \210
Oct 7 09:42:02 m-PowerBook-G4 sshd[415]: error: /etc/sshd_config: line 87: Bad configuration option: \342
Oct 7 09:42:02 m-PowerBook-G4 sshd[415]: error: /etc/sshd_config: line 97: Bad configuration option: \210
Oct 7 09:42:02 m-PowerBook-G4 sshd[415]: error: /etc/sshd_config: line 103: Bad configuration option: \221
Oct 7 09:42:02 m-PowerBook-G4 sshd[415]: error: /etc/sshd_config: line 107: Bad configuration option: \221Subsystem
Oct 7 09:42:02 m-PowerBook-G4 sshd[415]: fatal: /etc/sshd_config: terminating, 6 bad configuration options
Here's the sshd_config file:
# $OpenBSD: sshd_config,v 1.68 2003/12/29 16:39:50 millert Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# 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
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
# HostKey for protocol version 1
#HostKey /etc/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh_host_rsa_key
#HostKey /etc/ssh_host_dsa_key
# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768
# Logging
#obsoletes QuietMode and FascistLogging
SyslogFacility AUTHPRIV
#LogLevel INFO
# Authentication:
?
#LoginGraceTime 2m
#PermitRootLogin yes
#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_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
# SACL options
#SACLSupport yes
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
^?#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange yes
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
# Set this to 'yes' to enable PAM authentication (via challenge-response)
# and session processing. Depending on your PAM configuration, this may
# bypass the setting of 'PasswordAuthentication' and 'PermitEmptyPasswords'
#UsePAM no
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
?#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
^?#ClientAliveCountMax 3
#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/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# ForceCommand cvs server
Any suggestions? Your help is appreciated! Thanks!
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status:
Offline
|
|
Well, it looks to me like you have some funny
?
and
^?
on lines 35, 69, 87, 97, 103, and 107.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum 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
|
|
|
|
|
|
|
|
|
|
|
|