Difference: SSH (6 vs. 7)

Revision 72012-02-01 - AdrianBuzatu

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
-- WilliamBreadenMadden - 2011-11-14
Line: 30 to 30
  To close a window, the "exit" command can be used (as in a normal shell). This will cause one to fall back to the previous monitor one opened, or to one's main prompt (from which screen was started).
Changed:
<
<
One of the biggest advantages of using screen is that one can "detach" a screen session. This means one returns to the normal shell, but the processes started in screen remain active in the background. To detach, press Ctrl + a, followed by d (for "detach"). Basically, one can start a number of processes, exit the shell and return some time later to pick up the session started in screen. Further, should one be disconnected accidentally during a screen session, one can pick up the (detached) screen session. To "reattach", SSH to the shell of the server that screen was being run on. To present a list of the current screen sessions running, use the "screen -ls" command. To resume one of these listed previous screen sessions, use the "screen -r " command. One can actually type simply the first few characters of the session name (enough to identify that session) or, indeed, if there is only one session running, one need use only the "screen -r" ("r" for "resume") command. If a screen session is still attached, it can not be resumed before it is detached.
>
>
One of the biggest advantages of using screen is that one can "detach" a screen session. This means one returns to the normal shell, but the processes started in screen remain active in the background. To detach, press Ctrl + a, followed by d (for "detach"). Basically, one can start a number of processes, exit the shell and return some time later to pick up the session started in screen. Further, should one be disconnected accidentally during a screen session, one can pick up the (detached) screen session. To "reattach", SSH to the shell of the server that screen was being run on. To present a list of the current screen sessions running, use the "screen -ls" command. To resume one of these listed previous screen sessions, use the "screen -r " command. One can actually type simply the first few characters of the session name (enough to identify that session) or, indeed, if there is only one session running, one need use only the "screen -r" ("r" for "resume") command. If a screen session is still attached, it can not be resumed before it is detached.
 

Example using CERN LXPLUS

Line: 141 to 141
 

Unlock a frozen SSH session

To unlock a frozen SSH session (e.g. after connection timeout) without needing to open a new shell, press Enter, then tilde, then period.

Added:
>
>

Make "delete" work properly in text editing

When I ssh to lxplus machines at CERN and I try to edit a file, either with emacs, nano or pico, when I press the backspace key it does not remove the character to the left of the cursor as it should. The following solutions solves the problem in the xterm ran after the ssh command, but not in the initial window. You need to create this file in your home area

[abuzatu@lxplus401]~% emacs -nw ~/.Xdefaults

then add this line in the file

*VT100.Translations: #override \
<Key>BackSpace: string(0x7F)\n\
<Key>Delete: string("\033[3~")\n\
<Key>Home: string("\033[1~")\n\
<Key>End: string("\033[4~")
*ttyModes: erase ^?

At lxplus machines edit .zshrc

When I ssh to lxplus machines at CERN the default shell is /bin/zsh, so if you want to add aliases of your own, you have to edit the file ~/.zshrc.

  -- WilliamBreadenMadden - 2011-08-25 \ No newline at end of file
Added:
>
>
-- AdrianBuzatu - 2012-02-01
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback