ssh 不输入密码连接服务器

Posted by wxianfeng Thu, 14 Apr 2011 17:39:00 GMT

环境:ubuntu10.10(client) + Centos 5.5 (server)

每次ssh连接服务器 ,scp 拷贝东西 , 或者rsync同步 ,都要输入密码验证,很麻烦,把publickey传到server上的 authorized_keys 中即可 ,建立信任后就不需要输入密码了


>ssh-keygen -t rsa # 或者用 dsa 加密

2,上传 publickey 文件到server

>scp  ~/.ssh/ root@ #  换成你server的ip



把服务器上的 authorized_keys 变为 600权限,.ssh 目录和用户主目录变为 700 / 755 权限

[entsea@www .ssh]$ ll
total 16
-rw-------. 1 entsea entsea  404 May 19 02:50 authorized_keys



localhost:.ssh wangxianfeng$ cat ~/.ssh/config 
    user wxianfeng


This entry was posted on Thu, 14 Apr 2011 17:39:00 GMT and Posted in . You can follow any any response to this entry through the Atom feed. You can leave a comment or a trackback from your own site.



Use the following link to trackback from your own site:

  1. Cheat league Of angels Cheat league Of angels
    ssh 不输入密码连接服务器 | 0x64


  1. Avatar
    Mikellag almost {{count}} years ago:

    where i can to order tickets, tour tickets now on sale Ariana Grande tickets purchase online tour tickets agency, how much do tickets cost Cheapest Red Hot Chili Peppers tickets tickets sites, concert tour tickets images Purchase Def Leppard tickets online tour tickets without service, tour tickets without service Where to purchase Lady Gaga tickets tickets email, tickets for today theater e-ticket by e-mail, concert tickets for * Where i can to purchase Metallica tickets
    theater tickets economics, tickets for wicked How to get John Mayer tickets online tickets home tickets, theater tickets purchase online Zac Brown Band tickets economics tickets sale, concert tour tickets purchased Lady Gaga ticket price where to purchase tickets, tickets direct concert tickets to your door, concert tour tickets pour
    tickets home tickets, how can i get tickets to * Tim McGraw & Faith Hill tickets agency theater tickets economy, tickets cost U2 tickets tax concert tour tickets images, tickets booking Jeff Dunham tickets at discount theater tickets with paypal, selling tickets How much tickets Jeff Dunham cost concert tour tickets music, tickets for teachers tickets with paypal, tickets show Rod Stewart tickets samples
    tickets home tickets, booking tickets online John Mayer tickets cheapest tickets cost, vip tickets Where i can to purchase Metallica tickets concert tickets example, concert tickets bill How to buy Def Leppard tickets online tickets price, concert tickets to * concert tickets to *, tickets events

  2. Avatar
    Mikellag almost {{count}} years ago:

    concert tour tickets home tickets, concert tickets email Where i can to buy Green Day tickets tour tickets now review, concert tickets sale How much is tickets Queen & Adam Lambert show tickets, concert tickets gift Purchase Blondie & Garbage tickets online concert tour tickets home printing, tickets cheapest Jeff Dunham ticket tickets in my area, tickets buy online tour tickets, how to order tickets online Where i can to order Billy Joel tickets
    concert tickets *, concert tour tickets ebay Lady Gaga tickets economic tickets buy online, concert tickets price Luke Bryan ticket price theater tickets for wicked, concert tour tickets agents Rod Stewart tickets discount concert tour tickets pour, tour tickets book tickets *, tour tickets economics
    concert tickets for *, where to purchase theatre tickets How to order Red Hot Chili Peppers tickets online how many concert tickets have sold, tour tickets Def Leppard tickets facebook tickets theater, concert tickets sites Sam Hunt tickets samples theater tickets facebook, concert tickets cheapest Queen & Adam Lambert tickets direct price of theater tickets *, theatre tickets cheap concert tickets exchange, where to buy tickets Booking Green Day tickets online
    theater tickets sellers, theater ticket prices Red Hot Chili Peppers tickets using paypal credit where to purchase tickets, concert tour tickets get your tickets John Mayer tickets home tickets tour tickets cheap, tour tickets with no service Lady Gaga tickets prices theater tickets online, price of theater tickets * tickets discounted, theater tickets facebook

  3. Avatar
    alisonpl18 almost {{count}} years ago:

    Бесплатная эротика и секс фото галереи
    Ряд порно фото ради взрослых

Leave a comment