Portál AbcLinuxu, 25. dubna 2024 18:30


Dotaz: Putty- Access denied

27.5.2008 11:37 miro1 | skóre: 2
Putty- Access denied
Přečteno: 691×
Odpovědět | Admin
Uz som to spominal v predchadzajucom dotaze, ale ten druhy/hlavny problem sa vyriesil tak som to uzavrel a urobil novy. Mame OpneSUSE 10 kde bezi Samba. Okrem toho je tam par zakladnych veci:Webmin, MC, SSH(v minulom dotaze som sa sekol a napisal SSL) a KDE. Vsetko som riadil na dialku cez webmin a len vynimocne cez Putty, ale zrazu mi zacalo pisat "Access denied". S rovnakym menom(root) a heslom sa prihlasim do PC bez problemov. Webmin tiez nema problem iba putty. Vypyta meno a ked zadam heslo tak "Access denied". Firewall je vypnuty.
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

27.5.2008 11:53 Guci | skóre: 9
Rozbalit Rozbalit vše Re: Putty- Access denied
Odpovědět | | Sbalit | Link | Blokovat | Admin
ja hlavne moc nechapu k cemu putty
27.5.2008 13:06 miro1 | skóre: 2
Rozbalit Rozbalit vše Re: Putty- Access denied
a co ine? Na dialku. Vela veci robim cez webmin, ale on nedokaze vsetko.
27.5.2008 13:19 Guci | skóre: 9
Rozbalit Rozbalit vše Re: Putty- Access denied
normalne pres ssh ?
27.5.2008 13:31 miro1 | skóre: 2
Rozbalit Rozbalit vše Re: Putty- Access denied
spustim putty a idem cez ssh. Ako inak sa da ist cez ssh z WinXP?
27.5.2008 11:57 Jan Šimák | skóre: 37 | Hradec Králové
Rozbalit Rozbalit vše Re: Putty- Access denied
Odpovědět | | Sbalit | Link | Blokovat | Admin
Nejsou nastaveny nějaké restrikce v /etc/ssh/sshd_config ? Např. AllowUsers ; PermitRootLogin ; PasswordAuthentication
27.5.2008 12:11 Cuda | skóre: 10
Rozbalit Rozbalit vše Re: Putty- Access denied
Jojo, taky se přikláním k nastavení v sshd_config, dokonce roota doporučuju mít zakázaného (nebo spíše povolit jen některé usery pomocí AllowUsers Karel,Mirek a pak se přihlásit pod Karlem a dát su a heslo pro roota, je to určo bezpečnější.
27.5.2008 12:26 Filip Jirsák | skóre: 68 | blog: Fa & Bi
Rozbalit Rozbalit vše Re: Putty- Access denied
pak se přihlásit pod Karlem a dát su a heslo pro roota, je to určo bezpečnější
Určo je to bezpečnější, protože ta práce navíc se přece nějak musí projevit. Kdybych při přihlašování stál vždycky jen na levé noze, taky to bude určitě bezpečnější, přece to nebudu dělat jen tak pro nic za nic.

Tedy, ono to bezpečnější je. Ale pokud povolíte přihlašování roota a zakážete pro něj přihlašování heslem (bude se moci přihlásit jen klíčkem), udělal jste pro bezpečnost nesrovnatelně víc. Kdysi se tu o tom vedl dlouhý flamewar…
27.5.2008 12:08 1john2 | skóre: 35 | blog: jo12hn | zlín, brno
Rozbalit Rozbalit vše Re: Putty- Access denied
Odpovědět | | Sbalit | Link | Blokovat | Admin
nepouzivate klice? v debianu byla objevena dost velka dira pri vytvareni klicu, resilo se aktualizaci...
27.5.2008 13:11 miro1 | skóre: 2
Rozbalit Rozbalit vše Re: Putty- Access denied
Odpovědět | | Sbalit | Link | Blokovat | Admin
tu je ssh_config. PRECO OpenBSD???
$OpenBSD: ssh_config,v 1.20 2005/01/28 09:45:53 dtucker Exp $

# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for some commonly used options.  For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.

Host *
#   ForwardAgent no
#   ForwardX11 no

# If you do not trust your remote host (or its administrator), you
# should not forward X11 connections to your local X11-display for
# security reasons: Someone stealing the authentification data on the
# remote side (the "spoofed" X-server by the remote sshd) can read your
# keystrokes as you type, just like any other X11 client could do.
# Set this to "no" here for global effect or in your own ~/.ssh/config
# file if you want to have the remote X11 authentification data to 
# expire after two minutes after remote login.
ForwardX11Trusted yes

#   RhostsRSAAuthentication no
#   RSAAuthentication yes
#   PasswordAuthentication yes
#   HostbasedAuthentication no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/identity
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
#   Port 22
#   Protocol 2,1
#   Cipher 3des
#   Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
#   EscapeChar ~
#   GSSAPIAuthentication no
#   GSSAPIDelegateCredentials no 

# Set this to 'yes' to enable support for the deprecated 'gssapi' authentication
# mechanism to OpenSSH 3.8p1. The newer 'gssapi-with-mic' mechanism is included
# in this release. The use of 'gssapi' is deprecated due to the presence of 
# potential man-in-the-middle attacks, which 'gssapi-with-mic' is not susceptible to.
#   GSSAPIEnableMITMAttack no

# This enables sending locale enviroment variables LC_* LANG, see ssh_config(5).
SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES 
SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT 
SendEnv LC_IDENTIFICATION LC_ALL
27.5.2008 13:31 Jan Šimák | skóre: 37 | Hradec Králové
Rozbalit Rozbalit vše Re: Putty- Access denied
# This is the ssh client system-wide configuration file.
užitečnější bude sshd_config ;-)
27.5.2008 13:35 Jan Šimák | skóre: 37 | Hradec Králové
Rozbalit Rozbalit vše Re: Putty- Access denied
27.5.2008 13:40 miro1 | skóre: 2
Rozbalit Rozbalit vše Re: Putty- Access denied
Ja mam OpenSUSE. Je to OK, ze je tam config z OpenBSD? Ja som s tym nic nerobil, takze neviem ako je mozne ze tam je.
27.5.2008 13:42 miro1 | skóre: 2
Rozbalit Rozbalit vše Re: Putty- Access denied
Aha, pardon. Uz som si to precital na tej Wikipedii
27.5.2008 13:36 miro1 | skóre: 2
Rozbalit Rozbalit vše Re: Putty- Access denied
Odpovědět | | Sbalit | Link | Blokovat | Admin
sshd_config
#	$OpenBSD: sshd_config,v 1.72 2005/07/25 11:59:40 markus 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/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
#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/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 no
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

# Set this to 'yes' to enable support for the deprecated 'gssapi' authentication
# mechanism to OpenSSH 3.8p1. The newer 'gssapi-with-mic' mechanism is included
# in this release. The use of 'gssapi' is deprecated due to the presence of 
# potential man-in-the-middle attacks, which 'gssapi-with-mic' is not susceptible to.
#GSSAPIEnableMITMAttack 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 yes

#AllowTcpForwarding yes
#GatewayPorts 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
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10

# no default banner path
#Banner /some/path

# override default of no subsystems
Subsystem	sftp	/usr/lib64/ssh/sftp-server

# This enables accepting locale enviroment variables LC_* LANG, see sshd_config(5).
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES 
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT 
AcceptEnv LC_IDENTIFICATION LC_ALL
27.5.2008 13:39 miro1 | skóre: 2
Rozbalit Rozbalit vše Re: Putty- Access denied
PasswordAuthentication no Nema tam byt YES?
27.5.2008 13:55 miro1 | skóre: 2
Rozbalit Rozbalit vše Re: Putty- Access denied
ok. Uz to ide. Zmenil som najskor "PermitRootLogin yes"(dal som prec#) a potom, kedze to este nefungovalo, tak aj "PasswordAuthentication " na yes a uz to ide. Diky vsetkym, za pomoc a ochotu.
27.5.2008 15:31 pavel
Rozbalit Rozbalit vše Re: Putty- Access denied
Pěkně zabezpečené SSH ... Nedáš mi tvou IP?

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.