Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Keep Your SSH Session Running when You Disconnect Keep Your Sesi Menjalankan SSH ketika Anda Putus

Screen is like a window manager for your console. Layar adalah seperti manajer jendela konsol anda. It will allow you to keep multiple terminal sessions running and easily switch between them. Ini akan memungkinkan Anda untuk menyimpan beberapa sesi terminal berjalan dan mudah beralih di antara mereka. It also protects you from disconnection, because the screen session doesn't end when you get disconnected. Ini juga melindungi Anda dari pemutusan, karena sesi layar tidak berakhir ketika Anda terputus.

You'll need to make sure that screen is installed on the server you are connecting to. Anda harus memastikan bahwa layar terinstal pada server Anda tersambung ke. If that server is Ubuntu or Debian, just use this command: Jika itu server Ubuntu atau Debian, cukup gunakan perintah ini:

sudo apt-get install screen sudo apt-get install screen

Now you can start a new screen session by just typing screen at the command line. Sekarang Anda dapat memulai sesi screen baru dengan hanya mengetik layar pada baris perintah. You'll be shown some information about screen. Hit enter, and you'll be at a normal prompt. Anda akan ditampilkan beberapa informasi mengenai layar. Hit masuk, dan Anda akan berada pada prompt normal.

To disconnect (but leave the session running) Untuk memutuskan sambungan (tapi meninggalkan sesi berjalan)

Hit Ctrl + A and then Ctrl + D in immediate succession. Tekan Ctrl + A dan kemudian Ctrl + D di segera suksesi. You will see the message [detached] Anda akan melihat pesan [terpisah]

To reconnect to an already running session Untuk menyambung kembali ke sesi yang sudah berjalan

screen -r screen-r

To reconnect to an existing session, or create a new one if none exists Untuk menyambung kembali ke sesi yang sudah ada, atau membuat yang baru jika belum ada

screen -D -r layar-D-r

To create a new window inside of a running screen session Untuk membuat jendela baru di dalam sesi screen yang berjalan

Hit Ctrl + A and then C in immediate succession. Tekan Ctrl + A dan kemudian C segera suksesi. You will see a new prompt. Anda akan melihat prompt baru.

To switch from one screen window to another Untuk beralih dari satu layar jendela yang lain

Hit Ctrl + A and then Ctrl + A in immediate succession. Tekan Ctrl + A dan kemudian Ctrl + A dalam suksesi langsung.

To list open screen windows Untuk daftar jendela layar yang terbuka

Hit Ctrl + A and then W in immediate succession Tekan Ctrl + A dan kemudian W dalam suksesi langsung

There's lots of other commands, but those are the ones I use the most. Ada banyak perintah lain, tetapi mereka adalah orang-orang yang paling saya gunakan.

This article was originally written on 12/14/06 Tagged with: Artikel ini awalnya ditulis pada 12/14/06 Tagged with: Adding Software Menambahkan Software , , SysAdmin SysAdmin , , Ubuntu Ubuntu

Daily Email Updates Harian Email Pembaharuan

You can get our how-to articles in your inbox each day for free. Anda bisa mendapatkan kita bagaimana-untuk artikel dalam kotak masuk Anda setiap hari secara gratis. Just enter your name and email below: Cukup masukkan nama dan email Anda di bawah ini:


Name: Nama:
Email: Email:

Comments (3) Komentar (3)

  1. ukay Ukay

    What about keep sessions with server X redirected? Bagaimana dengan menjaga sesi dengan server X diarahkan? (ssh -X) (ssh-X)
    It would be nice. It would be nice.

    Thank you in advance Thank you in advance

  2. Peter Peter

    The nohup command can help you there. Nohup perintah yang dapat membantu Anda di sana. Have a quick google and you will find out all about it. Google sebentar dan Anda akan menemukan semua tentang hal itu.

  3. Eduardo Sanchez Eduardo Sanchez

    I learned to use this command a long time ago the hard way when I was updating Redhat with more than 100 files including kernel updates over SSH and our the power in the office went dead. Aku belajar untuk menggunakan perintah ini sudah lama sekali cara yang keras ketika saya update Redhat dengan lebih dari 100 file termasuk update kernel di atas SSH dan kekuatan kami di kantor terputus. Recovering from a half updated OS is not fun so I suggest you use “screen” when using “yum” or “apt-get”. Pulih dari setengah diperbaharui OS yang tidak menyenangkan sehingga saya menyarankan Anda menggunakan "layar" ketika menggunakan "yum" atau "apt-get".


Leave a Comment Tinggalkan Komentar




Leave your Meninggalkan friendly ramah comment here. komentar di sini.

If you have a computer help question, Jika Anda memiliki pertanyaan bantuan komputer, click here to leave it on the forums klik di sini untuk meninggalkannya di forum instead. selain.

Note: Your comment may not show up immediately on the site. Catatan: Komentar anda mungkin tidak muncul segera di situs.

Our Friends Our Friends
Getting Started Persiapan


About How-To Geek Tentang How-To Geek
What Is That Process? Apa Proses Itu?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
mDNSResponder.exe mDNSResponder.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.