On a linux server how do you use multiple terminals over a single ssh connection?Is SSH logging capabilities equivalent to su logging for private/public key authentication?SSH sometimes screws up connection when terminal overflows?SSH into remote server using Public-private keysIs it possible to have ssh public key id_dsa.pub stored on a centralized serverHow to allow anyone to access a program through SSHSSH private-public key auth, disable normal password auth, can still login locally?SSH only works after intentionally failed passwordProblems with SSHssh use public-key authenticationConfigure Ubuntu to allow ssh login via pulic/private key and sudo without password

Difference between prepositions in "...killed during/in the war"

Confused with atmospheric pressure equals plastic balloon’s inner pressure

Extracting data from Plot

How far would a landing Airbus A380 go until it stops with no brakes?

A Salute to Poetry

How durable are silver inlays on a blade?

Can the removal of a duty-free sales trolley result in a measurable reduction in emissions?

bash vs. zsh: What are the practical differences?

Why is long-term living in Almost-Earth causing severe health problems?

Oil draining out shortly after turbo hose detached/broke

How and why do references in academic papers work?

How to befriend someone who doesn't like to talk?

What do you call the action of "describing events as they happen" like sports anchors do?

Can you make an identity from this product?

Is it okay to have a sequel start immediately after the end of the first book?

Do you need to let the DM know when you are multiclassing?

Make Gimbap cutter

Proving that a Russian cryptographic standard is too structured

Does the Nuka-Cola bottler actually generate nuka cola?

Why isn't Bash trap working if output is redirected to stdout?

Why did Intel abandon unified CPU cache?

Housemarks (superimposed & combined letters, heraldry)

Why ambiguous grammars are bad?

Diatonic chords of a pentatonic vs blues scale?



On a linux server how do you use multiple terminals over a single ssh connection?


Is SSH logging capabilities equivalent to su logging for private/public key authentication?SSH sometimes screws up connection when terminal overflows?SSH into remote server using Public-private keysIs it possible to have ssh public key id_dsa.pub stored on a centralized serverHow to allow anyone to access a program through SSHSSH private-public key auth, disable normal password auth, can still login locally?SSH only works after intentionally failed passwordProblems with SSHssh use public-key authenticationConfigure Ubuntu to allow ssh login via pulic/private key and sudo without password






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








14















I often find myself opening several ssh connections in order to view several log files at a time with tail -f.



This isn't a problem when I'm at home because I use public key encryption for password-less login. However, I will often use computer at my university to do this so I don't have the option of using my private key. It gets annoying to enter my password 4 or 5 times to get several terminal windows.



How can I get multiple terminals over a single connection?










share|improve this question




























    14















    I often find myself opening several ssh connections in order to view several log files at a time with tail -f.



    This isn't a problem when I'm at home because I use public key encryption for password-less login. However, I will often use computer at my university to do this so I don't have the option of using my private key. It gets annoying to enter my password 4 or 5 times to get several terminal windows.



    How can I get multiple terminals over a single connection?










    share|improve this question
























      14












      14








      14


      5






      I often find myself opening several ssh connections in order to view several log files at a time with tail -f.



      This isn't a problem when I'm at home because I use public key encryption for password-less login. However, I will often use computer at my university to do this so I don't have the option of using my private key. It gets annoying to enter my password 4 or 5 times to get several terminal windows.



      How can I get multiple terminals over a single connection?










      share|improve this question














      I often find myself opening several ssh connections in order to view several log files at a time with tail -f.



      This isn't a problem when I'm at home because I use public key encryption for password-less login. However, I will often use computer at my university to do this so I don't have the option of using my private key. It gets annoying to enter my password 4 or 5 times to get several terminal windows.



      How can I get multiple terminals over a single connection?







      linux ssh






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 1 '09 at 1:47









      epochwolfepochwolf

      399816




      399816




















          9 Answers
          9






          active

          oldest

          votes


















          38














          Just use GNU screen, it's great as you can start up remote sessions and restore them if your connection drops. It's available as a package for most distributions and may even already be installed on your university system.



          The manual will give you all you need to get started, by default all commands are preceeded by Ctrl+A. For example to bring up the onscreen help, just press Ctrl+A then press ?






          share|improve this answer

























          • I have been a linux admin for several years and use screen many, many times a day.

            – borodimer
            May 1 '09 at 5:34











          • No server is complete without screen.

            – Gert M
            May 1 '09 at 7:03






          • 2





            After using screen for the last few hours I can't believe I lived without it! I've spent 5 years Doing It Wrong.

            – epochwolf
            May 1 '09 at 7:29


















          11














          screen allows you to have multiple terminals and more (such as the ability to detach and re-attach to your session).



          Some notes to get you going:



          Ctrl-a c create
          Ctrl-a d detach
          screen -r reattach
          Ctrl-a a toggle
          Ctrl-a " list


          And some recommended reading:



          • http://en.wikipedia.org/wiki/GNU_Screen

          • http://jmcpherson.org/screen.html

          • http://blogamundo.net/code/screen

          • http://www.kuro5hin.org/story/2004/3/9/16838/14935





          share|improve this answer
































            4














            Take a look at the following two articles on SSH connection sharing:



            http://fermiparadox.wordpress.com/2008/06/19/ssh-connection-sharing/
            http://protempore.net/~calvins/howto/ssh-connection-sharing/



            Basically, do a google search on ssh connection sharing and you'll find a bunch of other articles on it.






            share|improve this answer




















            • 1





              Interesting. The one issue is that if my internet connection were to drop I would be unable to reconnect without deleting the socket. If I can't connect how do I get into the server to delete the socket?

              – epochwolf
              May 1 '09 at 5:29











            • You don't have to delete the socket on the server, it's only a client-side sharing. So you run `ssh foo' once and it creates the socket on the same machine you ran the ssh foo command on. The server sees multiple logins on separate ttys, so it doesn't know any different to "normal" separate logins.

              – David Gardner
              May 1 '09 at 12:44


















            3














            Possibly, you could use X forwarding to open multiple remote xterms on your local desktop.






            share|improve this answer























            • Server doesn't have X11 installed. Also, not workable on a windows system that I can't install an X server on.

              – epochwolf
              May 1 '09 at 3:37











            • The Linux server doesn't need to have X11 to run graphical applications that show up on your local desktop. Also, the Cygwin X-Server works great for running things like Firefox from my home Linux box (without X running on my home box) and they show up just fine on my local Windows laptop.

              – shapr
              May 21 '09 at 19:54


















            2














            You give no compelling reason why you can't use private keys from the other systems. Generate them per-machine and add the applicable keys to authorized_hosts



            Still, use screen.






            share|improve this answer























            • Is using a private key on what amounts to a public computer a good idea? Especially considering I didn't put a passphrase on the key?

              – epochwolf
              May 1 '09 at 7:31






            • 1





              You wouldn't use the same key as you use elsewhere - you would generate a new key (with a passphrase) and add its public key to the authorized_keys file on your server. Name it something like "portablekey" and take it out of authorized_keys if you think it might have been compromised.

              – Neall
              May 1 '09 at 11:57


















            2














            You may also want to look at byobu. It's an enhanced version of Screen and I believe it's a Ubuntu project. But it comes standard with Ubuntu 9.10 and newer.



            I tend to still use Screen though by habit but wanted to mention this newer alternative.






            share|improve this answer






























              1














              If all you're using it for is tailing several files, you may also be interested in multitail.






              share|improve this answer

























              • Interesting link. I just mentioned my most common usage. I also need to switch between vim and bash to look up paths for things.

                – epochwolf
                May 1 '09 at 5:27


















              1














              One unmentioned screen feature is to "detach" screen and it will keep running whatever commands you have running in that set of screens. Once screen is detached, you can logout and it all keeps chugging away even after logging off.
              I'll startup screen and then do several c commands to create new 'subscreens'. I can switch between them and start some long running compile or data processing and be assured that my crappy VPN connection won' cause everything to die with it.



              After logging off, you can log back in and use 'screen -R' which will re-attach you to your existing screen sessoins.






              share|improve this answer






























                0














                To use screen with ssh, type



                ssh -t <user>@<server> screen -r


                (source). man ssh:




                -t Force pseudo-terminal allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty.







                share|improve this answer























                  Your Answer








                  StackExchange.ready(function()
                  var channelOptions =
                  tags: "".split(" "),
                  id: "2"
                  ;
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function()
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled)
                  StackExchange.using("snippets", function()
                  createEditor();
                  );

                  else
                  createEditor();

                  );

                  function createEditor()
                  StackExchange.prepareEditor(
                  heartbeatType: 'answer',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader:
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  ,
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  );



                  );













                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function ()
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f2016%2fon-a-linux-server-how-do-you-use-multiple-terminals-over-a-single-ssh-connection%23new-answer', 'question_page');

                  );

                  Post as a guest















                  Required, but never shown

























                  9 Answers
                  9






                  active

                  oldest

                  votes








                  9 Answers
                  9






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  38














                  Just use GNU screen, it's great as you can start up remote sessions and restore them if your connection drops. It's available as a package for most distributions and may even already be installed on your university system.



                  The manual will give you all you need to get started, by default all commands are preceeded by Ctrl+A. For example to bring up the onscreen help, just press Ctrl+A then press ?






                  share|improve this answer

























                  • I have been a linux admin for several years and use screen many, many times a day.

                    – borodimer
                    May 1 '09 at 5:34











                  • No server is complete without screen.

                    – Gert M
                    May 1 '09 at 7:03






                  • 2





                    After using screen for the last few hours I can't believe I lived without it! I've spent 5 years Doing It Wrong.

                    – epochwolf
                    May 1 '09 at 7:29















                  38














                  Just use GNU screen, it's great as you can start up remote sessions and restore them if your connection drops. It's available as a package for most distributions and may even already be installed on your university system.



                  The manual will give you all you need to get started, by default all commands are preceeded by Ctrl+A. For example to bring up the onscreen help, just press Ctrl+A then press ?






                  share|improve this answer

























                  • I have been a linux admin for several years and use screen many, many times a day.

                    – borodimer
                    May 1 '09 at 5:34











                  • No server is complete without screen.

                    – Gert M
                    May 1 '09 at 7:03






                  • 2





                    After using screen for the last few hours I can't believe I lived without it! I've spent 5 years Doing It Wrong.

                    – epochwolf
                    May 1 '09 at 7:29













                  38












                  38








                  38







                  Just use GNU screen, it's great as you can start up remote sessions and restore them if your connection drops. It's available as a package for most distributions and may even already be installed on your university system.



                  The manual will give you all you need to get started, by default all commands are preceeded by Ctrl+A. For example to bring up the onscreen help, just press Ctrl+A then press ?






                  share|improve this answer















                  Just use GNU screen, it's great as you can start up remote sessions and restore them if your connection drops. It's available as a package for most distributions and may even already be installed on your university system.



                  The manual will give you all you need to get started, by default all commands are preceeded by Ctrl+A. For example to bring up the onscreen help, just press Ctrl+A then press ?







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 1 '09 at 2:38

























                  answered May 1 '09 at 1:55









                  saschabeaumontsaschabeaumont

                  2,7641914




                  2,7641914












                  • I have been a linux admin for several years and use screen many, many times a day.

                    – borodimer
                    May 1 '09 at 5:34











                  • No server is complete without screen.

                    – Gert M
                    May 1 '09 at 7:03






                  • 2





                    After using screen for the last few hours I can't believe I lived without it! I've spent 5 years Doing It Wrong.

                    – epochwolf
                    May 1 '09 at 7:29

















                  • I have been a linux admin for several years and use screen many, many times a day.

                    – borodimer
                    May 1 '09 at 5:34











                  • No server is complete without screen.

                    – Gert M
                    May 1 '09 at 7:03






                  • 2





                    After using screen for the last few hours I can't believe I lived without it! I've spent 5 years Doing It Wrong.

                    – epochwolf
                    May 1 '09 at 7:29
















                  I have been a linux admin for several years and use screen many, many times a day.

                  – borodimer
                  May 1 '09 at 5:34





                  I have been a linux admin for several years and use screen many, many times a day.

                  – borodimer
                  May 1 '09 at 5:34













                  No server is complete without screen.

                  – Gert M
                  May 1 '09 at 7:03





                  No server is complete without screen.

                  – Gert M
                  May 1 '09 at 7:03




                  2




                  2





                  After using screen for the last few hours I can't believe I lived without it! I've spent 5 years Doing It Wrong.

                  – epochwolf
                  May 1 '09 at 7:29





                  After using screen for the last few hours I can't believe I lived without it! I've spent 5 years Doing It Wrong.

                  – epochwolf
                  May 1 '09 at 7:29













                  11














                  screen allows you to have multiple terminals and more (such as the ability to detach and re-attach to your session).



                  Some notes to get you going:



                  Ctrl-a c create
                  Ctrl-a d detach
                  screen -r reattach
                  Ctrl-a a toggle
                  Ctrl-a " list


                  And some recommended reading:



                  • http://en.wikipedia.org/wiki/GNU_Screen

                  • http://jmcpherson.org/screen.html

                  • http://blogamundo.net/code/screen

                  • http://www.kuro5hin.org/story/2004/3/9/16838/14935





                  share|improve this answer





























                    11














                    screen allows you to have multiple terminals and more (such as the ability to detach and re-attach to your session).



                    Some notes to get you going:



                    Ctrl-a c create
                    Ctrl-a d detach
                    screen -r reattach
                    Ctrl-a a toggle
                    Ctrl-a " list


                    And some recommended reading:



                    • http://en.wikipedia.org/wiki/GNU_Screen

                    • http://jmcpherson.org/screen.html

                    • http://blogamundo.net/code/screen

                    • http://www.kuro5hin.org/story/2004/3/9/16838/14935





                    share|improve this answer



























                      11












                      11








                      11







                      screen allows you to have multiple terminals and more (such as the ability to detach and re-attach to your session).



                      Some notes to get you going:



                      Ctrl-a c create
                      Ctrl-a d detach
                      screen -r reattach
                      Ctrl-a a toggle
                      Ctrl-a " list


                      And some recommended reading:



                      • http://en.wikipedia.org/wiki/GNU_Screen

                      • http://jmcpherson.org/screen.html

                      • http://blogamundo.net/code/screen

                      • http://www.kuro5hin.org/story/2004/3/9/16838/14935





                      share|improve this answer















                      screen allows you to have multiple terminals and more (such as the ability to detach and re-attach to your session).



                      Some notes to get you going:



                      Ctrl-a c create
                      Ctrl-a d detach
                      screen -r reattach
                      Ctrl-a a toggle
                      Ctrl-a " list


                      And some recommended reading:



                      • http://en.wikipedia.org/wiki/GNU_Screen

                      • http://jmcpherson.org/screen.html

                      • http://blogamundo.net/code/screen

                      • http://www.kuro5hin.org/story/2004/3/9/16838/14935






                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited May 2 '09 at 3:23

























                      answered May 1 '09 at 2:03









                      Philip DurbinPhilip Durbin

                      89121023




                      89121023





















                          4














                          Take a look at the following two articles on SSH connection sharing:



                          http://fermiparadox.wordpress.com/2008/06/19/ssh-connection-sharing/
                          http://protempore.net/~calvins/howto/ssh-connection-sharing/



                          Basically, do a google search on ssh connection sharing and you'll find a bunch of other articles on it.






                          share|improve this answer




















                          • 1





                            Interesting. The one issue is that if my internet connection were to drop I would be unable to reconnect without deleting the socket. If I can't connect how do I get into the server to delete the socket?

                            – epochwolf
                            May 1 '09 at 5:29











                          • You don't have to delete the socket on the server, it's only a client-side sharing. So you run `ssh foo' once and it creates the socket on the same machine you ran the ssh foo command on. The server sees multiple logins on separate ttys, so it doesn't know any different to "normal" separate logins.

                            – David Gardner
                            May 1 '09 at 12:44















                          4














                          Take a look at the following two articles on SSH connection sharing:



                          http://fermiparadox.wordpress.com/2008/06/19/ssh-connection-sharing/
                          http://protempore.net/~calvins/howto/ssh-connection-sharing/



                          Basically, do a google search on ssh connection sharing and you'll find a bunch of other articles on it.






                          share|improve this answer




















                          • 1





                            Interesting. The one issue is that if my internet connection were to drop I would be unable to reconnect without deleting the socket. If I can't connect how do I get into the server to delete the socket?

                            – epochwolf
                            May 1 '09 at 5:29











                          • You don't have to delete the socket on the server, it's only a client-side sharing. So you run `ssh foo' once and it creates the socket on the same machine you ran the ssh foo command on. The server sees multiple logins on separate ttys, so it doesn't know any different to "normal" separate logins.

                            – David Gardner
                            May 1 '09 at 12:44













                          4












                          4








                          4







                          Take a look at the following two articles on SSH connection sharing:



                          http://fermiparadox.wordpress.com/2008/06/19/ssh-connection-sharing/
                          http://protempore.net/~calvins/howto/ssh-connection-sharing/



                          Basically, do a google search on ssh connection sharing and you'll find a bunch of other articles on it.






                          share|improve this answer















                          Take a look at the following two articles on SSH connection sharing:



                          http://fermiparadox.wordpress.com/2008/06/19/ssh-connection-sharing/
                          http://protempore.net/~calvins/howto/ssh-connection-sharing/



                          Basically, do a google search on ssh connection sharing and you'll find a bunch of other articles on it.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Mar 22 '10 at 2:07

























                          answered May 1 '09 at 2:25









                          EvanEvan

                          339135




                          339135







                          • 1





                            Interesting. The one issue is that if my internet connection were to drop I would be unable to reconnect without deleting the socket. If I can't connect how do I get into the server to delete the socket?

                            – epochwolf
                            May 1 '09 at 5:29











                          • You don't have to delete the socket on the server, it's only a client-side sharing. So you run `ssh foo' once and it creates the socket on the same machine you ran the ssh foo command on. The server sees multiple logins on separate ttys, so it doesn't know any different to "normal" separate logins.

                            – David Gardner
                            May 1 '09 at 12:44












                          • 1





                            Interesting. The one issue is that if my internet connection were to drop I would be unable to reconnect without deleting the socket. If I can't connect how do I get into the server to delete the socket?

                            – epochwolf
                            May 1 '09 at 5:29











                          • You don't have to delete the socket on the server, it's only a client-side sharing. So you run `ssh foo' once and it creates the socket on the same machine you ran the ssh foo command on. The server sees multiple logins on separate ttys, so it doesn't know any different to "normal" separate logins.

                            – David Gardner
                            May 1 '09 at 12:44







                          1




                          1





                          Interesting. The one issue is that if my internet connection were to drop I would be unable to reconnect without deleting the socket. If I can't connect how do I get into the server to delete the socket?

                          – epochwolf
                          May 1 '09 at 5:29





                          Interesting. The one issue is that if my internet connection were to drop I would be unable to reconnect without deleting the socket. If I can't connect how do I get into the server to delete the socket?

                          – epochwolf
                          May 1 '09 at 5:29













                          You don't have to delete the socket on the server, it's only a client-side sharing. So you run `ssh foo' once and it creates the socket on the same machine you ran the ssh foo command on. The server sees multiple logins on separate ttys, so it doesn't know any different to "normal" separate logins.

                          – David Gardner
                          May 1 '09 at 12:44





                          You don't have to delete the socket on the server, it's only a client-side sharing. So you run `ssh foo' once and it creates the socket on the same machine you ran the ssh foo command on. The server sees multiple logins on separate ttys, so it doesn't know any different to "normal" separate logins.

                          – David Gardner
                          May 1 '09 at 12:44











                          3














                          Possibly, you could use X forwarding to open multiple remote xterms on your local desktop.






                          share|improve this answer























                          • Server doesn't have X11 installed. Also, not workable on a windows system that I can't install an X server on.

                            – epochwolf
                            May 1 '09 at 3:37











                          • The Linux server doesn't need to have X11 to run graphical applications that show up on your local desktop. Also, the Cygwin X-Server works great for running things like Firefox from my home Linux box (without X running on my home box) and they show up just fine on my local Windows laptop.

                            – shapr
                            May 21 '09 at 19:54















                          3














                          Possibly, you could use X forwarding to open multiple remote xterms on your local desktop.






                          share|improve this answer























                          • Server doesn't have X11 installed. Also, not workable on a windows system that I can't install an X server on.

                            – epochwolf
                            May 1 '09 at 3:37











                          • The Linux server doesn't need to have X11 to run graphical applications that show up on your local desktop. Also, the Cygwin X-Server works great for running things like Firefox from my home Linux box (without X running on my home box) and they show up just fine on my local Windows laptop.

                            – shapr
                            May 21 '09 at 19:54













                          3












                          3








                          3







                          Possibly, you could use X forwarding to open multiple remote xterms on your local desktop.






                          share|improve this answer













                          Possibly, you could use X forwarding to open multiple remote xterms on your local desktop.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered May 1 '09 at 1:59









                          John FouhyJohn Fouhy

                          1,04974




                          1,04974












                          • Server doesn't have X11 installed. Also, not workable on a windows system that I can't install an X server on.

                            – epochwolf
                            May 1 '09 at 3:37











                          • The Linux server doesn't need to have X11 to run graphical applications that show up on your local desktop. Also, the Cygwin X-Server works great for running things like Firefox from my home Linux box (without X running on my home box) and they show up just fine on my local Windows laptop.

                            – shapr
                            May 21 '09 at 19:54

















                          • Server doesn't have X11 installed. Also, not workable on a windows system that I can't install an X server on.

                            – epochwolf
                            May 1 '09 at 3:37











                          • The Linux server doesn't need to have X11 to run graphical applications that show up on your local desktop. Also, the Cygwin X-Server works great for running things like Firefox from my home Linux box (without X running on my home box) and they show up just fine on my local Windows laptop.

                            – shapr
                            May 21 '09 at 19:54
















                          Server doesn't have X11 installed. Also, not workable on a windows system that I can't install an X server on.

                          – epochwolf
                          May 1 '09 at 3:37





                          Server doesn't have X11 installed. Also, not workable on a windows system that I can't install an X server on.

                          – epochwolf
                          May 1 '09 at 3:37













                          The Linux server doesn't need to have X11 to run graphical applications that show up on your local desktop. Also, the Cygwin X-Server works great for running things like Firefox from my home Linux box (without X running on my home box) and they show up just fine on my local Windows laptop.

                          – shapr
                          May 21 '09 at 19:54





                          The Linux server doesn't need to have X11 to run graphical applications that show up on your local desktop. Also, the Cygwin X-Server works great for running things like Firefox from my home Linux box (without X running on my home box) and they show up just fine on my local Windows laptop.

                          – shapr
                          May 21 '09 at 19:54











                          2














                          You give no compelling reason why you can't use private keys from the other systems. Generate them per-machine and add the applicable keys to authorized_hosts



                          Still, use screen.






                          share|improve this answer























                          • Is using a private key on what amounts to a public computer a good idea? Especially considering I didn't put a passphrase on the key?

                            – epochwolf
                            May 1 '09 at 7:31






                          • 1





                            You wouldn't use the same key as you use elsewhere - you would generate a new key (with a passphrase) and add its public key to the authorized_keys file on your server. Name it something like "portablekey" and take it out of authorized_keys if you think it might have been compromised.

                            – Neall
                            May 1 '09 at 11:57















                          2














                          You give no compelling reason why you can't use private keys from the other systems. Generate them per-machine and add the applicable keys to authorized_hosts



                          Still, use screen.






                          share|improve this answer























                          • Is using a private key on what amounts to a public computer a good idea? Especially considering I didn't put a passphrase on the key?

                            – epochwolf
                            May 1 '09 at 7:31






                          • 1





                            You wouldn't use the same key as you use elsewhere - you would generate a new key (with a passphrase) and add its public key to the authorized_keys file on your server. Name it something like "portablekey" and take it out of authorized_keys if you think it might have been compromised.

                            – Neall
                            May 1 '09 at 11:57













                          2












                          2








                          2







                          You give no compelling reason why you can't use private keys from the other systems. Generate them per-machine and add the applicable keys to authorized_hosts



                          Still, use screen.






                          share|improve this answer













                          You give no compelling reason why you can't use private keys from the other systems. Generate them per-machine and add the applicable keys to authorized_hosts



                          Still, use screen.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered May 1 '09 at 2:28









                          ironfroggyironfroggy

                          12923




                          12923












                          • Is using a private key on what amounts to a public computer a good idea? Especially considering I didn't put a passphrase on the key?

                            – epochwolf
                            May 1 '09 at 7:31






                          • 1





                            You wouldn't use the same key as you use elsewhere - you would generate a new key (with a passphrase) and add its public key to the authorized_keys file on your server. Name it something like "portablekey" and take it out of authorized_keys if you think it might have been compromised.

                            – Neall
                            May 1 '09 at 11:57

















                          • Is using a private key on what amounts to a public computer a good idea? Especially considering I didn't put a passphrase on the key?

                            – epochwolf
                            May 1 '09 at 7:31






                          • 1





                            You wouldn't use the same key as you use elsewhere - you would generate a new key (with a passphrase) and add its public key to the authorized_keys file on your server. Name it something like "portablekey" and take it out of authorized_keys if you think it might have been compromised.

                            – Neall
                            May 1 '09 at 11:57
















                          Is using a private key on what amounts to a public computer a good idea? Especially considering I didn't put a passphrase on the key?

                          – epochwolf
                          May 1 '09 at 7:31





                          Is using a private key on what amounts to a public computer a good idea? Especially considering I didn't put a passphrase on the key?

                          – epochwolf
                          May 1 '09 at 7:31




                          1




                          1





                          You wouldn't use the same key as you use elsewhere - you would generate a new key (with a passphrase) and add its public key to the authorized_keys file on your server. Name it something like "portablekey" and take it out of authorized_keys if you think it might have been compromised.

                          – Neall
                          May 1 '09 at 11:57





                          You wouldn't use the same key as you use elsewhere - you would generate a new key (with a passphrase) and add its public key to the authorized_keys file on your server. Name it something like "portablekey" and take it out of authorized_keys if you think it might have been compromised.

                          – Neall
                          May 1 '09 at 11:57











                          2














                          You may also want to look at byobu. It's an enhanced version of Screen and I believe it's a Ubuntu project. But it comes standard with Ubuntu 9.10 and newer.



                          I tend to still use Screen though by habit but wanted to mention this newer alternative.






                          share|improve this answer



























                            2














                            You may also want to look at byobu. It's an enhanced version of Screen and I believe it's a Ubuntu project. But it comes standard with Ubuntu 9.10 and newer.



                            I tend to still use Screen though by habit but wanted to mention this newer alternative.






                            share|improve this answer

























                              2












                              2








                              2







                              You may also want to look at byobu. It's an enhanced version of Screen and I believe it's a Ubuntu project. But it comes standard with Ubuntu 9.10 and newer.



                              I tend to still use Screen though by habit but wanted to mention this newer alternative.






                              share|improve this answer













                              You may also want to look at byobu. It's an enhanced version of Screen and I believe it's a Ubuntu project. But it comes standard with Ubuntu 9.10 and newer.



                              I tend to still use Screen though by habit but wanted to mention this newer alternative.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Mar 20 '10 at 23:54









                              3dinfluence3dinfluence

                              12k12238




                              12k12238





















                                  1














                                  If all you're using it for is tailing several files, you may also be interested in multitail.






                                  share|improve this answer

























                                  • Interesting link. I just mentioned my most common usage. I also need to switch between vim and bash to look up paths for things.

                                    – epochwolf
                                    May 1 '09 at 5:27















                                  1














                                  If all you're using it for is tailing several files, you may also be interested in multitail.






                                  share|improve this answer

























                                  • Interesting link. I just mentioned my most common usage. I also need to switch between vim and bash to look up paths for things.

                                    – epochwolf
                                    May 1 '09 at 5:27













                                  1












                                  1








                                  1







                                  If all you're using it for is tailing several files, you may also be interested in multitail.






                                  share|improve this answer















                                  If all you're using it for is tailing several files, you may also be interested in multitail.







                                  share|improve this answer














                                  share|improve this answer



                                  share|improve this answer








                                  edited Mar 20 '10 at 23:13









                                  Dennis Williamson

                                  51.4k1193132




                                  51.4k1193132










                                  answered May 1 '09 at 4:16









                                  EvanEvan

                                  339135




                                  339135












                                  • Interesting link. I just mentioned my most common usage. I also need to switch between vim and bash to look up paths for things.

                                    – epochwolf
                                    May 1 '09 at 5:27

















                                  • Interesting link. I just mentioned my most common usage. I also need to switch between vim and bash to look up paths for things.

                                    – epochwolf
                                    May 1 '09 at 5:27
















                                  Interesting link. I just mentioned my most common usage. I also need to switch between vim and bash to look up paths for things.

                                  – epochwolf
                                  May 1 '09 at 5:27





                                  Interesting link. I just mentioned my most common usage. I also need to switch between vim and bash to look up paths for things.

                                  – epochwolf
                                  May 1 '09 at 5:27











                                  1














                                  One unmentioned screen feature is to "detach" screen and it will keep running whatever commands you have running in that set of screens. Once screen is detached, you can logout and it all keeps chugging away even after logging off.
                                  I'll startup screen and then do several c commands to create new 'subscreens'. I can switch between them and start some long running compile or data processing and be assured that my crappy VPN connection won' cause everything to die with it.



                                  After logging off, you can log back in and use 'screen -R' which will re-attach you to your existing screen sessoins.






                                  share|improve this answer



























                                    1














                                    One unmentioned screen feature is to "detach" screen and it will keep running whatever commands you have running in that set of screens. Once screen is detached, you can logout and it all keeps chugging away even after logging off.
                                    I'll startup screen and then do several c commands to create new 'subscreens'. I can switch between them and start some long running compile or data processing and be assured that my crappy VPN connection won' cause everything to die with it.



                                    After logging off, you can log back in and use 'screen -R' which will re-attach you to your existing screen sessoins.






                                    share|improve this answer

























                                      1












                                      1








                                      1







                                      One unmentioned screen feature is to "detach" screen and it will keep running whatever commands you have running in that set of screens. Once screen is detached, you can logout and it all keeps chugging away even after logging off.
                                      I'll startup screen and then do several c commands to create new 'subscreens'. I can switch between them and start some long running compile or data processing and be assured that my crappy VPN connection won' cause everything to die with it.



                                      After logging off, you can log back in and use 'screen -R' which will re-attach you to your existing screen sessoins.






                                      share|improve this answer













                                      One unmentioned screen feature is to "detach" screen and it will keep running whatever commands you have running in that set of screens. Once screen is detached, you can logout and it all keeps chugging away even after logging off.
                                      I'll startup screen and then do several c commands to create new 'subscreens'. I can switch between them and start some long running compile or data processing and be assured that my crappy VPN connection won' cause everything to die with it.



                                      After logging off, you can log back in and use 'screen -R' which will re-attach you to your existing screen sessoins.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Mar 22 '10 at 6:23









                                      Paul LeclercPaul Leclerc

                                      412




                                      412





















                                          0














                                          To use screen with ssh, type



                                          ssh -t <user>@<server> screen -r


                                          (source). man ssh:




                                          -t Force pseudo-terminal allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty.







                                          share|improve this answer



























                                            0














                                            To use screen with ssh, type



                                            ssh -t <user>@<server> screen -r


                                            (source). man ssh:




                                            -t Force pseudo-terminal allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty.







                                            share|improve this answer

























                                              0












                                              0








                                              0







                                              To use screen with ssh, type



                                              ssh -t <user>@<server> screen -r


                                              (source). man ssh:




                                              -t Force pseudo-terminal allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty.







                                              share|improve this answer













                                              To use screen with ssh, type



                                              ssh -t <user>@<server> screen -r


                                              (source). man ssh:




                                              -t Force pseudo-terminal allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty.








                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered May 27 at 5:25









                                              Yaroslav NikitenkoYaroslav Nikitenko

                                              501410




                                              501410



























                                                  draft saved

                                                  draft discarded
















































                                                  Thanks for contributing an answer to Server Fault!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid


                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.

                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function ()
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f2016%2fon-a-linux-server-how-do-you-use-multiple-terminals-over-a-single-ssh-connection%23new-answer', 'question_page');

                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                                                  Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                                                  What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company