Skip to main content

5 Basic Way to Control SSH in Linux

៥ មូលដ្ឋានគ្រឹះនៃការប្រើពាក្យបញ្ជា SSH Client សំរាប់ លីនុច
ក្នុងអត្ថបទនេះខ្ញុំនិងបង្ហាញពីការប្រើប្រាស់ SSH client ដែលមាន៥មូលដ្ឋានគ្រឹះដូចខាងក្រោម៖
១. បង្ហាញពីកំណែនៃ SSH client
២. Login ទៅកាន់remote host
៣. បញ្ជូនហ្វាលto/from ទៅកាន់remote host
​​៤. ធ្វើការបង្ហាញពីDebug នៃការតភ្ជាប់របស់​ SSH client
៥. Escape Characterរបស់SSH ដូចជា SSH session, SSH session statistics

openssh.gif
១. បង្ហាញពីកំណែនៃ SSH client
ពេលខ្លះវាមានសារៈសំខាន់ចំពោះការកំណត់ពីកំណែនៃSSH client ដែលអ្នកកំពុងប្រើប្រាស់វានិងបង្ហាញពី​ លេខនៃកំណែដូចតទៅនេះ។ចូរចំណាំថាលីនុចវាមានការតភ្ជាប់ជាOpenSSH ។



២. Login ទៅកាន់remote host
ទី១ . ជាលើកដំបូងពេលអ្នកLogin ពីlocalhost ទៅកាន់remotehost និងបង្ហាញពីhost key​
ដែលវារកមិនឃើញហើយអ្នកអាចclick ដើម្បីបន្តទៅទៀត។ពាក្យhost key រ​បស់remote host វានិងបន្ថែមនៅខាងក្រោមdirectory .ssh2/hostkeys ដូចខាងក្រោម៖




ទី២. ជាលើកទី២ពេលដែលអ្នកធ្វើការlogin ទៅកាន់remote host ពីlocalhost វានិងបង្ហាញ
prompt សួររកpassword សំរាប់remote host key​ ដូចខាងក្រោម៖



៣. បញ្ជូនហ្វាលto/from ទៅកាន់remote host
ការប្រើប្រាស់ផ្សេងទៀតនៃssh clientគឺការថតចំលងហ្វាលfrom/to ទៅកាន់remote hostដោយប្រើពាក្យបញ្ជាscp ដូចខាងក្រោម៖
- ទី១ថតចំលងហ្វាល​ ពីremotehost ទៅកាន់localhost​ ៖


ទី2ថតចំលងហ្វាល​ ពីlocalhost​ ទៅកាន់remotehost ៖
​

៤. ធ្វើការបង្ហាញពីDebug នៃការតភ្ជាប់របស់​ SSH client
ពេលខ្លះអ្នកក៍ត្រូវការបង្ហាញពីព៌តមានdebugចំពោះបញ្ហាការតភ្ជាប់SSHជាមួយការប្រើ-v ៖
- ទី១មិនត្រូវការព៌តមានdebug៖



- ទី២ត្រូវការបង្ហាញព៌តមានdebug៖



៥. Escape Characterរបស់SSH ដូចជា SSH session, SSH session statistics

Toggle SSH Session:ពេលដែលអ្នកloggedចូលទៅកាន់remotehostដោយប្រើSSH ពីlocalhostហើយអ្នកចង់ប្ដូរទីតាំងមកកាន់localhostវិញដើម្បីធ្វើការងារខ្លះនិងត្រឡប់ទៅកាន់remotehostវិញដោយមិនចាំបាច់ធ្វើការdisconnect និងreconnect ឡើយ។

- Login ទៅកាន់ remotehost ពី localhost :



- ពេលនេះអ្នកកំពុងតភ្ជាប់ជាមួយremotehost:



- ក្នុងខណៈនេះដើម្បីត្រឡប់ទៅកាន់localhostវិញសូមប្រើescape character ~ហើយនិងប្រើControl-Z។

ពេលដែលអ្នកវាយសញ្ញា~អ្នកនិងមិនឃើញមានអ្វីនៅលើscreenទេរហូតដល់ពេលអ្នកវាយ<Control-Z> ហើយpress enterដូចខាងក្រោម៖



- ពេលនេះយើងត្រឡប់មកlocalhostវិញហើយចំពោះssh remotehost client sessionនៅតែដំណើរការជាមួយunix background jobដដែល។


- បើអ្នកចង់ត្រឡប់ទៅកាន់remote hostជាមួយSSH ដោយមិនចាំបាច់ប្រើpasswordម្ដងទៀត៖


SSH Session statistics:ចំពោះបញ្ហានេះវាដំណើរការជាមួយSSH2 clientដូចខាងក្រោម៖
- Login ទៅកាន់ remotehost ពី localhost:


- ជាមួយremotehostប្រើssh escape character ~ជាមួយនិងអក្សរS នៅខាងក្រោយវានិងបង្ហាញពីការប្រើ​ប្រាស់statisticsរបស់SSH connection៖



Comments

Popular posts from this blog

We Lost Him & Lost Forever King norodom sihanouk (ព្រះករុណាព្រះបាទ នរោត្តម សីហនុ)

1:20AM 15/Oct/2012  is our sad day to heard that our hero (norodom sihanouk) was died in Beijing China . He is the king that i respect he is the one that help Cambodia. From now he leave us he leave us forever and forever :'( how sad we are to live without him. Even He was dead but his name his thing alway on our mind . Good Bye Grand Father  wish you all the best. YOU ARE MY HERO EVER AND FOREVER.

Google’s 12 best Android apps for 2012

As 2012 draws to a close, ‘ol Googs has finally revealed their top picks for apps of the year. If you’re expecting Holo-themed diamonds in the rough, you may be left wanting. Google said their pics were based on compatibility with both tablets and smartphones, and even a few veteran apps who recently found themselves redesigned made the cut. While I don’t have any particular objections with Google’s picks for best of 2012, I was only a bit disappointed to find there weren’t really any surprises. See for yourself and let me know if you agree. In no particular order, Google’s best Android apps for 2012 are: Zappos Evernote Pinterest Grimm’s Snow White

Khmer Unicode for all Android

នេះជាវិធីសាស្ត្រដែលមានប្រសិទ្ធភាពជាងគេ Rooted=> (Unlock boot loader/S-OFF)=> Install Custom ROM=> Flash Khmer Unicode បើមិនយល់នូវឣត្ថន័យនៃពាក្យខាងក្រោមសូមចូលទីនេះ www.androidcentral.com/dictionary ដំបូងបង្ឣស់ឣ្នកត្រូវ root និងតំឡើង Recovery (Odin,CWM or Rz) *សំរាប់ទូរស័ព្ទប្រភេទខ្លះវាមាន Recovery ស្រាប់ដែលឣនុញ្ញាតឣោយយើងFlash. zip ដោយមិនចាំបាច់ Root.(Ex.Samsung Galaxy W