PDA

View Full Version : Doing It All with OpenSSH, Part 1


TRN
06-01-2003, 07:55 PM
Linux Journal has a nice article on OpenSSH.

Anyone running a program like sniffit (reptile.rug.ac.be/~coder/sniffit/sniffit.html) can snoop on every packet sailing across your network. If you are logging in using telnet, that person can see your user name and password plain as day.

http://www.linuxjournal.com/article.php?sid=6909

NinerFan
06-05-2003, 11:01 PM
When remotely connected to a machine via SSH, take advantage of the program "screen".

Screen allows you to run "multiple sessions" via the same connection. It also has a handy feature of being able to suspend what you were doing, and resume it at a later time.

Here are some things to get you started:

At the shell prompt, type screen (Hopefully it is installed)
Your shell will refresh, and the title bar will say something like "screen 0"

To create another shell session, type < CTRL > < A > and then type the letter c. The titlebar will now say "screen 1" at the top.

To toggle between the two "screens", type < CTRL > < A > (from now on known as the command key) followed by the number of the screen. In our example, either the number one, or the number two.

To exit out of screen, you can either close all your screen sessions via the normal exit or < CTRL > < D > methods, or you can "detach" from screen by typing the command key (CTRL-A) followed by the letter d.

Try this for fun:

On one of the screen sessions, type any old thing on the shell, such as "I love Linux". Now detach from screen (CTRL-A, followed by the letter d). You will be back at your original shell, from before you ran screen. Now relaunch screen, but with the resume option, like so: screen -r. See something familiar?
Now detach again, and this time end your SSH connection. Reconnect back to the machine, and resume that screen session.

Being able to disconnect from a remote machine, and then later on, continuing exactly where you left off, puts the screen program on my list of essential programs for the Linux administrator.

Read the man page for screen for other wonderful features.

deafphate
07-29-2003, 05:07 PM
can also do screen -S irssi and it will name the session irssi instead of screen 0. Then you can call irssi and begin chatting and log out of the box when you are done, when you log back into it do screen -Rx irssi and it will resume the session, sure beats using numbers imo :)