Merhaba sshd config dosyasinda /etc/ssh/sshd_config asagidaki gibi degisiklik yapin, fakat bundan sonra uzaktan sifre ile baglanamazsiniz. Biraz fazla secure davranmis olabilirim:) Protocol 2 PermitRootLogin without-password RSAAuthentication yes PubkeyAuthentication yes PasswordAuthentication no PermitEmptyPasswords no ChallengeResponseAuthentication no UsePAM no Compression yes UseDNS no daha sonra kill -HUP sshd_pid ile sshd servisini tekrar baslatin. simdi ssh-keygen ile public ve private key dosyalarinizi olusturun. # ssh-keygen -t dsa -b 2048 -f serhat-key -f ile verdiginiz dosya isminde 2 adet dosya olusturacak bunladan uzantisi olmayan private key diger .pub ile biten public key dosyaniz.... Public key dosyasini authorized_keys dosyasi olarak /root/.ssh/ altina kopyalayin, .ssh folder yoksa olusturun ve folder haklarini 700 olarak ayarlayin, authorized_keys dosyasinin haklarini da 400 olarak ayarlayin # mkdir /root/.ssh # chmod 700 /root/.ssh # mv serhat-key.pub /root/.ssh/authorized_keys # chmod 400 /root/.ssh/auhtorized_keys daha sonra private key dosyasini da kendi bilgisayariniza alin.. bu dosayayi ssh client ile beraber kullanacaksiniz. NOT: public key dosyasinin sonuna bir email adresi eklemis olmali, baglantida problem yasarsaniz dosyayi editleyin ve email adresini silin. Selamlar Serhat On 03.Eki.2005, at 13:45, Mesut GÜLNAZ wrote:
|
- Re: [FreeBSD] RSA Key usage ve SecureCRT Serhat Selahattin Umar
- Re: [FreeBSD] RSA Key usage ve SecureCRT Mesut GÜLNAZ
- Re: [FreeBSD] RSA Key usage ve SecureCRT Serhat Selahattin Umar
- Re: [FreeBSD] RSA Key usage ve SecureC... Cengiz CAKAR