Open main menu

Linux and Unix Users Group at Virginia Teck Wiki β

Changes

Shell account tutorial

515 bytes added, 22:39, 23 February 2018
Troubleshooting
This page is intended Provides a summary of basic SSH usage on acidburn, with notes for [[ECE2524]] ECE 2524 students as well. In the future, these will be separated into two pages.One advantage of a shell account is that it allows one to leave an IRC client constantly connected, eliminate join/quit spam, and others new log missed messages to check later. In order to accomplish this, the concept of console-based IRC clientsclient must be run inside either [[tmux]] or [[screen]] so thatit will not be killed when you disconnect from SSH.
== CVL SSH accounts ==
for Virginia Tech affiliates. Accounts can be created at [http://computing.ece.vt.edu/accounts/ this page].
The ECE2524 VM (128.173.88.125) can be accessed via SSH for CVL users, and has tmux, mosh, and weechat installed. Acidburn (acidburn.vtluug.org),the VTLUUG shell server, has a few more IRC clients installed, as well as other software <s>and full IPv6 support</s>. The[[gp:CAD and Visualization Laboratory|CVL]] does ''not'' have any IRC clients installed, but is also useful for general computing (e.g. [[MATLAB]]).
One advantage of == Acidburn == Acidburn (acidburn.vtluug.org), the VTLUUG shell server, has a shell account is that it allows one to leave an few more IRC client constantly connectedclients installed, eliminate joinas well as other software and <s>full</quit spams> partial IPv6 support. Because of new restrictions on SSH access (all of port 22 is blocked for off-campus users, andalthough we ''shouldn't'' be blocked), Acidburn can be accessed at port 2222. log missed messages We strongly recommend setting permissions of '''all''' files on your acidburn home directory to check later600, except for a public_html/ directory. In order to accomplish this, the IRC client must be run inside either [[tmux]] or [[screen]] so thatit will not be killed when you disconnect from SSH.== Basic Usage ==
Here's the procedure for using either the ECE2524 server or acidburn for IRC:
#* ''Use this whenever you are inside a tmux window and wish to return to a shell''
# To, reattach to the first tmux seesion, just use <code>tmux attach</code>
#* <code>user@ece2524:~$ tmux attach-d</code>.
#* ''On subsequent logins, this should be the only command you need to execute to return to IRC''
 
Check out the [http://www.dayid.org/os/notes/tm.html tmux and screen cheat sheet] for a quick reference of some of the other
tmux commands. An additional command that might be useful is <code>tmux list-sessions</code>.
 
[http://mosh.mit.edu Mosh] is another helpful tool you may want to use for high-latency or mobile (e.g. wifi) connections.
You also may want to look into zsh, an alternative to bash with more features.
 
You also may want to setup an [http://nerderati.com/2011/03/simplify-your-life-with-an-ssh-config-file/ SSH config file]
for host aliases and Kerberos authentication.
'''If you have been given a temporary password please reset it by running
<code>user@acidburn:~$ passwd</code>'''
==Other SSH Suggestions==
* Use [https://wiki.archlinux.org/index.php/SSH_keys SSH Keys]
* Write up your own [[tmux|tmux.conf]]
* Use X-forwarding on servers that support it: <code> $ ssh -X user@client.server.tld </code>* Check out the [http://www.dayid.org/os/notes/tm.html tmux and screen cheat sheet] for a quick reference of some of the other tmux commands. An additional command that might be useful is <code>tmux list-sessions</code>.*[http://mosh.mit.edu Mosh] is another helpful tool you may want to use for high-latency or mobile (e.g. wifi) connections. You also may want to look into zsh, an alternative to bash with more features.*You also may want to setup an [http://nerderati.com/2011/03/simplify-your-life-with-an-ssh-config-file/ SSH config file] for host aliases and Kerberos authentication.
==Random Bash tips==
* Ctrl-D is the universal "end-of-file" command, and can be used to logout of shells
* Ctrl-C is the universal interrupt command, and can be used to kill running terminal jobs and clear your currently-typed command (rather than holding down backspace).
* Ctrl-Z can be used to pause processes, then fg or bg can be used to restart it in the foreground or background, respectively
==Troubleshooting==
* You (or someone using your IP address) have had too many failed login attempts, and fail2ban or a similar utility has banned you for a period of time, typically a week or so.
** This is easy to identify because ssh fails ''before'' you are prompted for a password.
** If this happened on a CVL machine, try connecting to a different node like <code>$ ssh pid@cvl10.ece.vt.edu</code> == See Also == * [[WeeChat]]* [[Irssi]]
==External Links==
Anonymous user