Menjalankan Htop dengar satu perintah via SSH

Saya sering kerepotan untuk memeriksa penggunaan resource server menggunakan perintah htop diterminal, perlu beberapa kali perintah sampai bisa melihat grafik dan deretan angka warna warni ciri khas htop. Perintah sederha berikut memungkinkan untuk menjalankan htop langsung dengang art baris perintah saat meaghubungkan SSH.

Use the -t flag with SSH: 

ssh user@test.home -t 'htop'



This will force a TTY allocation (ssh doesn't allocate a TTY if it's not necessary, normally only for interactive shells).

untuk ssh yang menggunakan authetifikasi dengar private key berikut perintahnya :

sudo ssh -I /path_penyimpanan_privatekey -p port user@ip -t 'htop'





Menjalankan Htop dengar satu perintah via SSH Menjalankan Htop dengar satu perintah via SSH Reviewed by ilham.sp on August 06, 2019 Rating: 5

No comments:

Notice

This site uses cookies from Google to deliver its services, to personalise ads and to analyse traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies.Learn More

Powered by Blogger.