Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
vi /etc/ssh/sshd_config
egrep -i 'Pubkey|Password|Listen' /etc/ssh/sshd_config | grep -v '^#'
    ListenAddress 0.0.0.0
    PermitRootLogin without-password
    PubkeyAuthentication yes
    PasswordAuthentication no

on an OpenBSD 5.1 server. But I can still login with FileZilla, and FileZilla only knows my password AFAIK (or not?).

How can I restrict any ssh/scp/sftp access to only accept key auth?

UPDATE: clinet side is a Scientific Linux 6.3, afaik the key is not cached.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Assuming your OS is Microsoft Windows, a SSH agent (like pageant) may have cached your key if you already connected your server using, for example, putty. see this page on Filezilla wiki for details. So your server is probably setup as needed.

share|improve this answer
    
I updated the Q –  gasko peter Jan 17 '13 at 12:52
1  
There also is a ssh agent in Linux, you can test if your key is cached using "ssh-add -l" to have a list of cached keys –  Aurelien Jan 17 '13 at 12:55
    
I will check that one and update the q or accept answer –  gasko peter Jan 17 '13 at 13:03
    
There is 1 key listed, so that means my key is cached? how can I clear this cache to test that filezilla really uses this? –  gasko peter Jan 17 '13 at 16:42
1  
a good idea is always to read documentation. You will quickly find what you are searching in "man ssh-add" :) –  Aurelien Jan 17 '13 at 20:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.