Tampilkan postingan dengan label internet. Tampilkan semua postingan

Bagaimanakah Caranya Login Otomatis Di Putty SSH  

Posted by Bagaimana Cara in ,

Bagaimanakah Caranya Login Otomatis Di Putty SSH?

1. Download aplikasi Autohotkey di sini http://www.autohotkey.com/download/

2. Install Autohotkey di komputer anda

3. Buat file dengan notepad, simpan file tersebut dengan extensi .ahk. Seperti berikut:

;==============Mulai Code====================
; Pastikan file Putty.exe telah berada di drive C:\
v_program=C:\Putty.exe 192.168.0.1
v_userid=root
v_passwd=admin

; waktu tunggu sebelum send userid (milisecond)
v_wait_userid=1000
; waktu tunggu sebelum send password (milisecond)
v_wait_passwd=1000

;-------------------------------------------------
; To make modifier keys to work properly (such as Shift)
SetKeyDelay, 0, 10

run, %v_program% , , , newpid

;you need to wait a little for the window to initialize
;sleep, 100
winwait, ahk_pid %newpid%

;wait for the login prompt to appear
sleep, %v_wait_userid%
ControlSend, , %v_userid%{enter}, ahk_pid %newpid%

sleep, %v_wait_passwd%
ControlSend, , %v_passwd%{enter}, ahk_pid %newpid%

;create unique title so you won't be lost
WinGetTitle, v_title, ahk_pid %newpid%
v_newtitle=%v_title% - %newpid%

;setting judul window
WinSetTitle, PUTIKU

;kirim key Alt+Enter, sehingga putty lsg full screen.Pastikan pilihan Full Screen on Alt+Enter pd Putty enable
Send !{ENTER}

;==============Akhir Code====================

4. Buka feature Convert .ahk to .exe



5. Browse file .ahk yang tadi anda buat, dan lokasi file hasil (.exe)



6. Klik Convert

7. Selesai