發願。隨筆

2013年1月2日 星期三

將ssh identity key自動加入

如果要讓ssh把rsa的key當作identity使用
必須 
$ ssh-add .ssh/gitHubKey
但是這樣一來每次登入都必需要作一次
另外的方法就是把下列放入.ssh/config裡面
IdentityFile ~/.ssh/gitHubKey

參考資料:
http://stackoverflow.com/questions/3466626/add-private-key-permanently-with-ssh-add-on-ubuntu
張貼者: shyu 於 下午4:27
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest

沒有留言:

張貼留言

較新的文章 較舊的文章 首頁
訂閱: 張貼留言 (Atom)

網誌存檔

  • ►  2026 (1)
    • ►  4月 (1)
  • ►  2025 (2)
    • ►  11月 (1)
    • ►  10月 (1)
  • ►  2021 (1)
    • ►  8月 (1)
  • ►  2019 (1)
    • ►  1月 (1)
  • ►  2018 (1)
    • ►  11月 (1)
  • ►  2014 (4)
    • ►  9月 (2)
    • ►  8月 (2)
  • ▼  2013 (12)
    • ►  10月 (1)
    • ►  9月 (1)
    • ►  6月 (2)
    • ►  5月 (1)
    • ►  4月 (1)
    • ▼  1月 (6)
      • 我所不知道的Vim
      • 讓一般user使用/dev/ttyUSB0
      • 用tcpip來進行android debug
      • 加一個remote到android repo
      • 常用git commands
      • 將ssh identity key自動加入
  • ►  2012 (33)
    • ►  12月 (7)
    • ►  11月 (21)
    • ►  10月 (1)
    • ►  9月 (4)

搜尋此網誌

關於我自己

shyu
檢視我的完整簡介
Powered By Blogger
Creative Commons License This work by ldshyu is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
圖片視窗主題. 主題圖片來源:sndr. 技術提供:Blogger.