View Full Version : SSH Access
SeLLeRoNe
03-19-2007, 01:53 PM
Hi,
ive restored an user backup and now i got an error, cannot log into server from ssh...
if i try with putty server ask for login username and when i put admin window close in 5 secs.
i've tryied from linux and i got this error:
>ssh admine@194.177.98.220
Permission denied (publickey,keyboard-interactive).
if i try to restart server work, but if i try to restart sshd i got an error with no detail...
im on debian 3.1 and now i cannot access on the server with ssh...
some one can say me how can i solve?
thanks
nobaloney
03-19-2007, 03:49 PM
Did the user have shell access? If not, then the ssh configuration file shouldn't have been touched.
Is it possible you've run out of disk space?
If you run out of disk space while updating a configuration file that can cause a problem.
It appears that your sshd_config file has somehow become corrupted; you'll probably need local access to fix it.
Jeff
SeLLeRoNe
03-19-2007, 04:14 PM
hi man
yes, user has ssh access... but looking on sshd_config from directadmin File Editor i dont see any error on it...
# Package generated configuration file
# See the sshd(8) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes
# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768
# Logging
SyslogFacility AUTH
LogLevel INFO
# Authentication:
LoginGraceTime 600
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys
# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Change to yes to enable tunnelled clear text passwords
PasswordAuthentication no
# To change Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#AFSTokenPassing no
#KerberosTicketCleanup no
# Kerberos TGT Passing does only work with the AFS kaserver
#KerberosTgtPassing yes
X11Forwarding no
X11DisplayOffset 10
PrintMotd no
#PrintLastLog yes
KeepAlive yes
#UseLogin no
#MaxStartups 10:30:60
#Banner /etc/issue.net
Subsystem sftp /usr/lib/sftp-server
UsePAM yes
AllowUsers root
AllowUsers admin
AllowUsers sellerone
AllowUsers ircrazy
AllowUsers services
AllowUsers ircstats
AllowUsers alex
disk have 250gb free space...
is hard for me have local access, server is many km away..
any idea?
nobaloney
03-19-2007, 04:25 PM
The file looks good. Have you tried restarting, stopping and starting the ssh daemon? Is the ssh daemon running?
You can set a cronjob to do:
# ps waux | grep sshd
and mail you the output.
Can you see in /var/log/messages or /var/log/secure, any errors when you try to login?
If you have a firewall, can you temporarily stop it?
It doesn't look like it can be an error caused by DA.
I can certainly understand you not wanting to have to visit the data center, but sometimes it's the only way.
Jeff
SeLLeRoNe
03-19-2007, 04:50 PM
how can i make cronjob email me?
i make one but dunno what happen...
messages log is stopd from the reboot.. nothing new write in..
i haveno firewall and on log viewer /var/log/secure is not show
if i give u admin login could u help me with some test? i think u are better than me on linux server ^^
may you?
Thanks
SeLLeRoNe
03-19-2007, 04:52 PM
sshd Running
if i try start/stop/restart/reload sshd i got this error:
An error has occurred
Details
SeLLeRoNe
03-20-2007, 11:12 AM
technical support of webfarm have found the error.
Change to yes to enable tunnelled clear text passwords
PasswordAuthentication no
just changed to yes :P
now i have a question, how can i make my sshd in italian?
ive see on google that i've to setup /etc/locale.gen
but opening this file i already see
it_IT@euro ISO-8859-15
what i have to change?
thanks
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.