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;
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
add a comment |
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
add a comment |
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
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
linux ssh
asked May 1 '09 at 1:47
epochwolfepochwolf
399816
399816
add a comment |
add a comment |
9 Answers
9
active
oldest
votes
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 ?
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
add a comment |
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
add a comment |
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.
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
add a comment |
Possibly, you could use X forwarding to open multiple remote xterms on your local desktop.
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
add a comment |
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.
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
add a comment |
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.
add a comment |
If all you're using it for is tailing several files, you may also be interested in multitail.
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
add a comment |
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.
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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 ?
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
add a comment |
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 ?
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
add a comment |
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 ?
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 ?
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
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
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
edited May 2 '09 at 3:23
answered May 1 '09 at 2:03
Philip DurbinPhilip Durbin
89121023
89121023
add a comment |
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
Possibly, you could use X forwarding to open multiple remote xterms on your local desktop.
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
add a comment |
Possibly, you could use X forwarding to open multiple remote xterms on your local desktop.
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
add a comment |
Possibly, you could use X forwarding to open multiple remote xterms on your local desktop.
Possibly, you could use X forwarding to open multiple remote xterms on your local desktop.
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
add a comment |
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
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 20 '10 at 23:54
3dinfluence3dinfluence
12k12238
12k12238
add a comment |
add a comment |
If all you're using it for is tailing several files, you may also be interested in multitail.
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
add a comment |
If all you're using it for is tailing several files, you may also be interested in multitail.
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
add a comment |
If all you're using it for is tailing several files, you may also be interested in multitail.
If all you're using it for is tailing several files, you may also be interested in multitail.
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 22 '10 at 6:23
Paul LeclercPaul Leclerc
412
412
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered May 27 at 5:25
Yaroslav NikitenkoYaroslav Nikitenko
501410
501410
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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