Platform: RHEL 6.5 x86_64
/etc/ssh/sshd_config:
AllowUsers root user1 user2
Showing posts with label ssh. Show all posts
Showing posts with label ssh. Show all posts
Friday, February 6, 2015
Thursday, January 29, 2015
linux shell: ssh / scp warning mesajlarını görmezden gelme
Uyarı mesajları:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is..
Warning: Permanently added to the list of known hosts
Çözüm:
mesajlarını görmezden gelmek için
~/.bashrc dosyasında
alias ssh=‘/usr/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=error’
alias scp=‘/usr/bin/scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=error’
tanımlanmalı.
veya
script içinde kullanım için scp / ssh komutlarını aşağıdaki şekilde tanımlayarak kullanabilirsiniz.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is..
Warning: Permanently added to the list of known hosts
Çözüm:
mesajlarını görmezden gelmek için
~/.bashrc dosyasında
alias ssh=‘/usr/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=error’
alias scp=‘/usr/bin/scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=error’
tanımlanmalı.
veya
script içinde kullanım için scp / ssh komutlarını aşağıdaki şekilde tanımlayarak kullanabilirsiniz.
SSHCMD="/usr/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=error"
SCPCMD="/usr/bin/scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=error”
veya
~/.ssh/config dosyası aşağıdaki satırlar eklenmeli.
Host *
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
LogLevel error
LogLevel error
Subscribe to:
Posts (Atom)