TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SSH Help
Okay is there any reason why ssh would work if you do ssh user@localhost
but if you do user@ip or user@hostname the server rejects the connection?
Also the server denys all connections to external hosts and that is not
what we want!
Attached is the Config files for SSH2
Thanks, Jon
# sshd2_config
# SSH 2.0 Server Configuration File
*:
Port 22
ListenAddress 0.0.0.0
Ciphers AnyStd
# Ciphers AnyCipher
# Ciphers AnyStdCipher
# Ciphers 3des
IdentityFile identification
AuthorizationFile authorization
HostKeyFile hostkey
PublicHostKeyFile hostkey.pub
RandomSeedFile random_seed
ForwardAgent yes
ForwardX11 no
DEPRECATED PasswordAuthentication yes
PasswordGuesses 1
MaxConnections 5
# 0 == number of connections not limited
# MaxConnections 5
# PermitRootLogin nopwd
PermitRootLogin no
# DEPRECATED PubkeyAuthentication yes
# AllowedAuthentications publickey,password,hostbased
AllowedAuthentications publickey,password,hostbased
# RequiredAuthentications publickey,password
ForcePTTYAllocation no
VerboseMode no
PrintMotd yes
CheckMail yes
UserConfigDirectory "%D/.ssh2"
# UserConfigDirectory "/etc/ssh2/auth/%U"
SyslogFacility AUTH
# SyslogFacility LOCAL7
Ssh1Compatibility yes
Sshd1Path <set by configure>
AllowHosts localhost, ism-sabis.net, mpls.uswest.net, spacestar.com
# AllowHosts localhost, foobar.com, friendly.org
DenyHosts bitstream.net, marley.bitstream.net, aol.com, microsoft.com
# DenyHosts evil.org, aol.com
# AllowSHosts trusted.host.org
# DenySHosts not.quite.trusted.org
# NoDelay yes
# KeepAlive yes
RequireReverseMapping yes
UserKnownHosts no
# subsystem definitions
subsystem-sftp sftp-server
# sshd2_config
# SSH 2.0 Server Configuration File
*:
Port 22
ListenAddress 0.0.0.0
Ciphers AnyStd
# Ciphers AnyCipher
# Ciphers AnyStdCipher
# Ciphers 3des
IdentityFile identification
AuthorizationFile authorization
HostKeyFile hostkey
PublicHostKeyFile hostkey.pub
RandomSeedFile random_seed
ForwardAgent yes
ForwardX11 no
DEPRECATED PasswordAuthentication yes
PasswordGuesses 1
MaxConnections 5
# 0 == number of connections not limited
# MaxConnections 5
# PermitRootLogin nopwd
PermitRootLogin no
# DEPRECATED PubkeyAuthentication yes
# AllowedAuthentications publickey,password,hostbased
AllowedAuthentications publickey,password,hostbased
# RequiredAuthentications publickey,password
ForcePTTYAllocation no
VerboseMode no
PrintMotd yes
CheckMail yes
UserConfigDirectory "%D/.ssh2"
# UserConfigDirectory "/etc/ssh2/auth/%U"
SyslogFacility AUTH
# SyslogFacility LOCAL7
Ssh1Compatibility yes
Sshd1Path <set by configure>
AllowHosts localhost, ism-sabis.net, mpls.uswest.net, spacestar.com
# AllowHosts localhost, foobar.com, friendly.org
DenyHosts bitstream.net, marley.bitstream.net, aol.com, microsoft.com
# DenyHosts evil.org, aol.com
# AllowSHosts trusted.host.org
# DenySHosts not.quite.trusted.org
# NoDelay yes
# KeepAlive yes
RequireReverseMapping yes
UserKnownHosts no
# subsystem definitions
subsystem-sftp sftp-server