Disable passwords in SSHD Cygwin
- From: Peter <retrodog@xxxxxxxxxxx>
- Date: Thu, 22 Dec 2005 17:26:02 -0000
I am running the Cygwin SSHD server on a machine and have been seeing
lots of attacks lately from all over the globe. so i generated a public
/ private key set and applied them correctly and now i connect properly
using these new keys. i then went into the file "cygwin\etc
\sshd_config" and set the following lines
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication no
#PermitEmptyPasswords no
the attacks continued so i tried a test. i moved the keys i just
generated to a dummy folder and then tried to connect to the machine
hosting the server
$ ssh localhost
to my surprise it asked for a password
so i went back to the file "cygwin\etc\sshd_config" and sure enough i
find this
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes <-------its still set to yes?
#PermitEmptyPasswords no
so i then looked at the folder holding the file and found that there are
now 2 files "cygwin\etc\sshd_config" and "cygwin\etc\sshd_config~" the
one with the ~ char at the end is owned by the loged in user and the one
without the ~ char is owned by the system. the one owned by the system
is the one where the password is still set to yes. every time i edit and
save the file it creates a new file with more and more ~ chars at the
end. what in the world is going on? i made sure to chmod 777 the file
to edit it then chmoded it back to 644. nothing seems to work and in the
mean time im getting massive attacks in the night from IP's all over the
world. I have hardend my password and there not succeeding but it still
is unnerving to see your security logs fill up like that
am i going about it the wrong way trying to edit my "cygwin\etc
\sshd_config" file? is there a command i need to run to make this change
permenant?
thanks in advance for the help
.
- Follow-Ups:
- Re: Disable passwords in SSHD Cygwin
- From: Peter
- Re: Disable passwords in SSHD Cygwin
- From: Per Hedeland
- Re: Disable passwords in SSHD Cygwin
- From: Richard E. Silverman
- Re: Disable passwords in SSHD Cygwin
- Prev by Date: Re: Digital Content Security Act
- Next by Date: Core dumping for sshd
- Previous by thread: Re: Digital Content Security Act
- Next by thread: Re: Disable passwords in SSHD Cygwin
- Index(es):
Relevant Pages
|