|
From: <and...@fr...> - 2006-12-20 08:44:18
|
Thank you and all others for your answers.
I am still having no success.
anyway
1) I am using OpensSSH, sshd NOT ssh2d (Yes, I was confused about ssh2 and
ssh or ssh2 "protocol 1 or 2 flavour ": now it is clear, thanks David:
>Is your server running OpenSSH (sshd) or SSH2 (sshd2)? The location &
>format of the public key is different. Note this is *not* the same as
>SSH protocol 1 & 2. Both OpenSSH & SSH2 will talk protocol 1 & 2 quite
>happily.
)
2) my /etc/ssh/sshd_config is wholly commented, apart from last lines:
# override default of no subsystems
Subsystem sftp /usr/lib/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
IgnoreRhosts yes
IgnoreUserKnownHosts no
PrintMotd yes
StrictModes no
RSAAuthentication yes
PubkeyAuthentication yes
PermitRootLogin yes
PermitEmptyPasswords no
GatewayPorts no
AllowTcpForwarding yes
KeepAlive yes
Protocol 2
NOTE: I had to manually add
PubkeyAuthentication yes
it was not present;
now I have only .ssh directory: root example:
drwxr--r-- 2 root root 112 Dec 18 14:37 .ssh
inside it:
-rwxr--r-- 1 root root 294 Dec 18 14:37 lamiachiave.pub
I removed authorization file;
I also tryed to modify the line:
IgnoreUserKnownHosts no
in
IgnoreUserKnownHosts yes
no changes, still getting
"Server refused our key"
I am sorry, but more help is required, sigh!
I created my keys pair using puttygen: perhaps they are not compatible; is
it possible to use something different ?
In other words: If I create a new user, webmin prepares the keys, but if I
already have one (the usual root...) what can I do ?
Should I manually use ssh-keygen ?
Thanks in advence,
Andrea
ax...@ax...
Sent by:
webadmin-list-bou To
nc...@li... "Webmin users list"
forge.net <web...@li...
t>
cc
18/12/2006 15.19
Subject
Re: [webmin-l] problem with ssh key
Please respond to
Webmin users list
<webadmin-list@li
sts.sourceforge.n
et>
Hi
.ssh is the correct directory for ssh and ssh2. Check your sshd_config file
where you can over ride the default setting for stored keys.
# Authentication:
LoginGraceTime 600
PermitRootLogin no
StrictModes yes
DenyUsers serious
RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys
and...@fr... wrote:
>
> Hi all,
> I am trying to create a public-private key for authentication via ssh,
> usable by putty os pscp
>
> I read a lot of docs, anyway I was not able to succed in doing this.
>
> I think the problem is that I am trying to create an SSH-2 key, using
> puttygen. I copied my public key in
> the /root/.ssh2 directory, I created the "authorization" file containing
> the key entry pointing to my .pub file in the same directory
>
> Nope, the server always answer:
>
> "Server refused our key"
>
> I tried to configure a new user, before having configured webmin to
> automatically create rsa key pair:
> My Idea was "to spy" what webmin did
>
> I discoverd webmin creates a .ssh dir (not .ssh2) with the key pair and
> without any authorization file
>
> I configured ssh server to use ONLY ssh-2 protocol
>
> what can I try to do ?
>
> thanks in advance,
>
> Andrea
>
> Chi ricevesse questa mail per errore e' gentilmente pregato di
cancellarla.
>
> Visitate il sito http://www.frameweb.it
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> -
> Forwarded by the Webmin mailing list at
web...@li...
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-list
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-
Forwarded by the Webmin mailing list at web...@li...
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
|