نمایش نتایج: از شماره 1 تا 1 , از مجموع 1

موضوع: SSH passwordless login with putty

  1. #1
    عضو انجمن ourweb آواتار ها
    تاریخ عضویت
    Apr 2012
    محل سکونت
    Ahvaz , IR
    نوشته ها
    797
    تشکر تشکر کرده 
    1,325
    تشکر تشکر شده 
    2,887
    تشکر شده در
    1,997 پست

    پیش فرض SSH passwordless login with putty

    For Linux administrators that use Windows for their desktop OS, Putty is an invaluble tool. This tutorial will help you save time administering your servers without having to login to provide a username and password each time.
    Click on image for play tutorial:



    1. Download PuTTY

    2. Download PuTTYgen

    3. Open PuTTYgen
    * Select SSH-2 RSA
    * Click ‘Generate’

    4. Save the Private Key
    * Click ‘Save private key’ (you do not have enter a password)
    * Save the private key in location easy to remember.

    5. Copy public-key
    * Select all text in the public key area.
    * right-click and select copy

    6. Configure the server settings in Putty
    * Open Putty
    * Click Session (left column)
    o Enter the server hostname or IP address
    o Enter a name under ‘Saved Sessions’
    * Click Connection > Data (left column)
    o Enter ‘root’ for the auto-login username
    * Click Connection > SSH (left column)
    o Select ‘2′ as the Preferred SSH protocol version.
    * Click Connection > SSH > Auth (left column)
    o Browse to the private key from step 4.
    * Click Session (left column)
    o Click Save

    7. Open a session with the server
    * Open PuTTY
    * Select the session saved earlier.
    * Click ‘Load’
    * Click ‘Open’
    * Login

    8. Add client public key.
    * You should still have the public-key in the clip-board from step 5.
    * Open the authorized_keys file on the linux server
    o
    کد PHP:
    [root@server]#vi ~/.ssh/authorized_keys2 
    o Press the ‘i’ key to insert in vi.
    o Go to the bottom of the file and right-click on the putty screen
    (This should insert the public key generated with PuTTYgen)
    o Press the ‘esc’ key to get out of insert mode in vi.
    o Press ‘:’ to enter command mode in vi
    o Type ‘wq’ to write and quit vi

    9. Now, you should be finished. Let’s test.
    * Open PuTTY
    * Select the session saved earlier.
    * Click ‘Load’
    * Click ‘Open’

    10. If you were able to login without entering your username and password you are finished!!If not, please continue to troubleshoot.

    Troubleshooting:

    If you do not have a /root/.ssh folder, we will have to create one and set the permissions
    کد PHP:
      [root@server]#mkdir ~/.ssh
    [root@server]#chmod 700 ~/.ssh 

    If you do not have a authorized_keys2 file, we will need to create one and set the permissions:

    کد PHP:
    [root@server]#vi ~/.ssh/authorized_keys2 
      
    [root@server]#chmod 644 ~/.ssh/authorized_keys2 
    If you get an error that the key was rejected, you need to make sure the permissions are set correctly on the .ssh directory and authorized_keys2 file.
    کد PHP:
    [root@server]#chmod 700 ~/.ssh  
      
    [root@server]#chmod 644 ~/.ssh/authorized_keys2 
    وب سایت : www.irhosting24.com
    تلگرام : OURWEB@ - تلفن تماس : موبایل : 09999978820

  2. تعداد تشکر ها از ourweb به دلیل پست مفید


  3. # ADS




     

اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. پاسخ ها: 7
    آخرين نوشته: July 28th, 2014, 13:11
  2. مشکل Login کردن
    توسط godman757 در انجمن Wordpress
    پاسخ ها: 3
    آخرين نوشته: April 8th, 2013, 18:01
  3. مشکل در SSH login
    توسط DeltaGostar در انجمن سوالات و مشکلات
    پاسخ ها: 3
    آخرين نوشته: December 18th, 2011, 23:06
  4. کارکرد اشتباه فرم login
    توسط sm_pakdel در انجمن PHP-MySQL
    پاسخ ها: 1
    آخرين نوشته: March 27th, 2011, 01:45
  5. ارور Login در SSH
    توسط SaMaN0861 در انجمن دايرکت ادمين DirectAdmin
    پاسخ ها: 3
    آخرين نوشته: February 1st, 2011, 09:31

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •