ssh -i identity-file(private-key)
2013年6月28日 星期五
ssh -i identity-file(private-key)
2013年5月4日 星期六
2013年5月2日 星期四
利用ssh-keygen來刪除某主機的ssh連線紀錄
ssh-keygen -f "/root/.ssh/known_hosts" -R 140.115.14.33
-f : file
-R: Remove
-f : file
-R: Remove
2013年4月27日 星期六
如何解決sed無法立即修改隱藏檔(.filename)的問題
像我們在做SSH時,~/.ssh/known_hosts會記錄ssh過的主機,但我們有時有刪除紀錄的需要
於是下達 sed -i '/a.b.c.d/d' ~/.ssh/known_hosts,但此時會噴出 invalid command at . 的錯誤訊息
於是得改下 sed -i "" '/a.b.c.d/d' ~/.ssh/known_hosts 就可以解決惹
Centos必須改成 sed --in-place=""
ssh-keygen -f "/root/.ssh/known_hosts" -R x.x.x.x
http://www.markhneedham.com/blog/2011/01/14/sed-sed-1-invalid-command-code-r-on-mac-os-x/
2013年4月1日 星期一
SSH Tunneling(a.k.a SSH Port Forwarding)
Port forwarding, or tunneling, is a way to forward otherwise insecure TCP traffic through SSH Secure Shell. You can secure for example POP3, SMTP and HTTP connections that would otherwise be insecure.
Local Tunneling
Remote Tunneling
訂閱:
文章 (Atom)