<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.umiacs.umd.edu/umiacs/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Meganst</id>
	<title>UMIACS - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.umiacs.umd.edu/umiacs/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Meganst"/>
	<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php/Special:Contributions/Meganst"/>
	<updated>2026-06-02T11:44:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.7</generator>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=SSH/Keys&amp;diff=9440</id>
		<title>SSH/Keys</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=SSH/Keys&amp;diff=9440"/>
		<updated>2020-10-30T18:08:08Z</updated>

		<summary type="html">&lt;p&gt;Meganst: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SSH can utilize public key encryption to authenticate and authorize users.  This can be considered more secure especially if you secure your private key with a pass-phrase.  The keys themselves are not susceptible to brute force attacks like normal passwords over SSH are.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
;Prerequisites&lt;br /&gt;
#If using batch clusters (e.g. [[SLURM]]) please read [[SSH/Keys#Batch clusters | Batch clusters]] prior to creating a new key.&lt;br /&gt;
#Determine your OS (and if Windows, what you will be using to create the key)&lt;br /&gt;
#*Windows&lt;br /&gt;
#**Git Bash: follow instructions for Linux/MacOSX/Bash and Git Bash (for Windows)&lt;br /&gt;
#**PuTTY: follow instructions for Windows (and PuTTY subsections)&lt;br /&gt;
#**TTSSH2: follow instructions for Windows (and TTSSH2 subsections)&lt;br /&gt;
#**[[BashForWindows10 | Windows Subsystem for Linux (WSL)]]: follow instructions for &#039;Linux/MacOSX/Bash and Git Bash (for Windows)&#039;&lt;br /&gt;
#*Linux: follow instructions for &#039;Linux/MacOSX/Bash and Git Bash (for Windows)&#039;&lt;br /&gt;
#*MacOSX: follow instructions for &#039;Linux/MacOSX/Bash and Git Bash (for Windows)&#039;&lt;br /&gt;
;Steps&lt;br /&gt;
#[[SSH/Keys#Create and store the key pair | Create and store the key pair]]&lt;br /&gt;
#[[SSH/Keys#Copy the public key | Copy the public key]]&lt;br /&gt;
#If Windows, [[SSH/Keys#Adding Keys to SSH Clients (Windows Only) | Adding Keys to SSH Clients (Windows Only)]]&lt;br /&gt;
;Additional Considerations&lt;br /&gt;
#The [[SSH/Keys#SSH Agents | SSH Agents]] section is not a required component of creating and using an SSH key, but can be very useful if you choose to create a password to protect your SSH key, but find yourself needing to enter that password many times in a session. [[SSH/Keys#SSH Agents | SSH Agents]] allow you to temporarily use your SSH key without a password for a set period of time. Please see the [[SSH/Keys#SSH Agents | SSH Agents]] section for more information.&lt;br /&gt;
&lt;br /&gt;
==Create and store the key pair==&lt;br /&gt;
&lt;br /&gt;
The first step is to generate a key which will create two files filled with long strings of characters.  A public key file that you may distribute to any machine you want to use it on and a private key that needs to be kept secure.  &#039;&#039;&#039;Allowing anyone to read this private key will compromise the security of the key and could allow someone to access any resources secured by this key without your consent.&#039;&#039;&#039; There are a number of different key types but &amp;lt;code&amp;gt;rsa&amp;lt;/code&amp;gt; is the most compatible.  &lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
;Git Bash&lt;br /&gt;
:See [[SSH/Keys#Linux.2FMacOSX.2FBash_and_Git_Bash_.28for_Windows.29 | Linux/MacOSX/Bash and Git Bash (for Windows)]]&lt;br /&gt;
;PuTTY &lt;br /&gt;
# Click on the start menu and search for PuTTYgen. Open the application&lt;br /&gt;
# Verify that you are attempting to create an &amp;quot;SSH2 RSA&amp;quot; key by clicking on the appropriate box&lt;br /&gt;
# Click generate and follow the instructions for generating your keys&lt;br /&gt;
# Add passphrase if wanted and save both the public and private keys&lt;br /&gt;
;TTSSH2&lt;br /&gt;
# Open the application&lt;br /&gt;
# Cancel the first box&lt;br /&gt;
# Go to setup on the menu bar and go to SSH KeyGenerator &lt;br /&gt;
# Click generate and follow the instructions for generating your key&lt;br /&gt;
# Add passphrase if wanted and save both the public and private keys&lt;br /&gt;
&lt;br /&gt;
===Linux/MacOSX/Bash and Git Bash (for Windows)===&lt;br /&gt;
;Create a new key with a password&lt;br /&gt;
You can run the command &amp;lt;code&amp;gt;ssh-keygen -t rsa&amp;lt;/code&amp;gt; to generate the new public and private key.  It will prompt you for a file to create the private key and then for the public key append &amp;lt;code&amp;gt;.pub&amp;lt;/code&amp;gt; extension and store it in the same directory.  Pressing enter at the passphrase step twice will create a key without a pass-phrase.&lt;br /&gt;
&lt;br /&gt;
Note: If you change the file in which to save the key, please ensure that it still starts with &#039;id&#039;, such as &#039;id_umiacs_rsa&#039;.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
-bash-4.2$ ssh-keygen -t rsa&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/home/derek/.ssh/id_rsa):&lt;br /&gt;
Created directory &#039;/home/derek/.ssh&#039;.&lt;br /&gt;
Enter passphrase (empty for no passphrase):&lt;br /&gt;
Enter same passphrase again:&lt;br /&gt;
Your identification has been saved in /home/derek/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /home/derek/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
32:bf:db:74:1b:7e:d7:c6:4b:b5:6f:a8:82:55:3f:bf derek@localhost.localdomain&lt;br /&gt;
The key&#039;s randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|                 |&lt;br /&gt;
|                 |&lt;br /&gt;
|            .    |&lt;br /&gt;
|      o S  . .  .|&lt;br /&gt;
|       +  .   o o|&lt;br /&gt;
|        .o. o  B.|&lt;br /&gt;
|        .+.o o+ O|&lt;br /&gt;
|        o...+o E+|&lt;br /&gt;
+-----------------+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Create a new key without a password&lt;br /&gt;
You can simplify the existing example above by telling it you do not want a pass-phrase and can run the command &amp;lt;code&amp;gt;ssh-keygen -t rsa -N &amp;quot;&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note: If you change the file in which to save the key, please ensure that it still starts with &#039;id&#039;, such as &#039;id_umiacs_rsa&#039;.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
-bash-4.2$ ssh-keygen -t rsa -N &amp;quot;&amp;quot;&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/home/derek/.ssh/id_rsa):&lt;br /&gt;
Created directory &#039;/home/derek/.ssh&#039;.&lt;br /&gt;
Your identification has been saved in /home/derek/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /home/derek/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
ff:7a:99:28:fc:63:d6:10:44:4c:2e:68:76:44:76:7a derek@localhost.localdomain&lt;br /&gt;
The key&#039;s randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|       .+++      |&lt;br /&gt;
|       + +o      |&lt;br /&gt;
|      + +.E      |&lt;br /&gt;
|     o . o.      |&lt;br /&gt;
|        S  .     |&lt;br /&gt;
|         ..      |&lt;br /&gt;
|       .  .+ o   |&lt;br /&gt;
|        o =.=    |&lt;br /&gt;
|         =o+.    |&lt;br /&gt;
+-----------------+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Modify permissions&lt;br /&gt;
Modify the permissions of your &amp;lt;tt&amp;gt;.ssh&amp;lt;/tt&amp;gt; directory as well as the private key file that you just created with &amp;lt;tt&amp;gt;chmod&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 700 ~/.ssh &lt;br /&gt;
chmod 600 ~/.ssh/id_rsa&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you named your file something other than id_rsa, change &amp;lt;tt&amp;gt;id_rsa&amp;lt;/tt&amp;gt; to the name of the file.&lt;br /&gt;
&lt;br /&gt;
==Copy the public key==&lt;br /&gt;
Once you have a generated a key pair you will want to add it to one or more computers to allow you to access them.  &lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
For Windows hosts you can use [http://winscp.net/eng/download.php WinSCP] to copy the public key file onto a remote host. The root file system for the Bash Subsystem for Windows is located under C:\Users\username&amp;gt;\AppData\Local\lxss\&lt;br /&gt;
&lt;br /&gt;
===Linux/MacOSX/Bash and Git Bash (for Windows)===&lt;br /&gt;
This can be done with the &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; command and it will prompt you the first time for your current password (&#039;&#039;&#039;NOT your pass-phrase&#039;&#039;&#039;). You can replace localhost with any other hostname you want to copy the key to. You can also specify a alternate user or identity file if you need to, please &amp;lt;code&amp;gt;man ssh-copy-id&amp;lt;/code&amp;gt; for more information within your terminal. This command will ensure that not only it copies your key but secures the file so that no one can tamper and add additional authorized keys to the file on the remote host. &lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
-bash-4.2$ ssh-copy-id localhost&lt;br /&gt;
/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed&lt;br /&gt;
/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys&lt;br /&gt;
derek@localhost&#039;s password:&lt;br /&gt;
&lt;br /&gt;
Number of key(s) added: 1&lt;br /&gt;
&lt;br /&gt;
Now try logging into the machine, with:   &amp;quot;ssh &#039;localhost&#039;&amp;quot;&lt;br /&gt;
and check to make sure that only the key(s) you wanted were added.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Adding Keys to SSH Clients (Windows Only)== &lt;br /&gt;
;PuTTY&lt;br /&gt;
# Open PuTTY and enter the Fully Qualified Domain Name for the host you wish to connect to.&lt;br /&gt;
# Go to the Connections tab on the side panel and click on the data subsection.&lt;br /&gt;
# Under data enter your default user into the first box. (Auto-login Username)&lt;br /&gt;
# Go to the SSH section of the side panel and then go to the Auth Section.&lt;br /&gt;
# Under Auth click on the browse and navigate to the saved private key.&lt;br /&gt;
# Go back to session on the side panel and save your settings by typing in a name in saved sessions pressing the save button.&lt;br /&gt;
;TTSSH2&lt;br /&gt;
# Open the application.&lt;br /&gt;
# Cancel the first box.&lt;br /&gt;
# Go to setup on the menu bar and go to SSH Authentication.&lt;br /&gt;
# Enter your username, Click on the option labeled &amp;quot;Use RSA ... key to log in&amp;quot;, then use the private key button located next to this line to navigate to your private key file, and click Ok.&lt;br /&gt;
&lt;br /&gt;
==Batch clusters==&lt;br /&gt;
Our [[SLURM]] clusters process jobs in batch and require the ability to SSH without entering a password. When creating a key for use with [[SLURM]], follow the above instructions for creating keys without passwords.&lt;br /&gt;
&lt;br /&gt;
After creating this key pair please make sure you follow the [[SSH/Keys#Copy_the_public_key | copy the public key]] instructions above to &amp;lt;code&amp;gt;localhost&amp;lt;/code&amp;gt;. This will ensure that your key will be usable on all the cluster nodes since they have a shared home directory.&lt;br /&gt;
&lt;br /&gt;
==SSH Agents==&lt;br /&gt;
While it is very useful to protect your SSH key pair with a pass-phrase it can very time consuming to re-type the pass-phrase over and over. SSH provides a agent that runs in the background and allow you add a key(s) to it with a time limit that they will be unlocked for.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-agent bash&lt;br /&gt;
ssh-add -t $TIME&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The time specified by &amp;lt;code&amp;gt;-t&amp;lt;/code&amp;gt; is specified in seconds.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
(The following would start a bash shell with passwordless SSH active for 30 minutes.)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-agent bash&lt;br /&gt;
ssh-add -t 1800&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will be prompted for your passphrase and, when entered correctly, you will be able to SSH without entering a password. You can check what keys are load when you are running inside a ssh-agent by using the command &amp;lt;code&amp;gt;ssh-add -l&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
bash-4.2$ ssh-add -l&lt;br /&gt;
2048 ee:83:10:c8:2f:2c:17:5e:ef:80:42:7e:ff:75:9e:53 /home/derek/.ssh/id_rsa (RSA)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=SecureShell&amp;diff=9439</id>
		<title>SecureShell</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=SecureShell&amp;diff=9439"/>
		<updated>2020-10-30T18:06:57Z</updated>

		<summary type="html">&lt;p&gt;Meganst: Pointing SSH Keys section to SSH/Keys page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Secure Shell (or [http://en.wikipedia.org/wiki/Secure_Shell SSH]) is a network protocol allowing two computers to exchange data securely over an insecure network.  By default, use of SSH brings the user to a terminal, but the protocol can be used for other types of data transfer such as [[SFTP]] and [[SCP]].&lt;br /&gt;
&lt;br /&gt;
==Connecting to an SSH Server==&lt;br /&gt;
Under Linux and macOS the following command from a terminal will connect a client computer to the UMIACS [[OpenLAB]].&lt;br /&gt;
 # ssh bkirz@openlab.umiacs.umd.edu&lt;br /&gt;
This will give you access to a terminal on any one of the [[OpenLAB]] servers.  Note that by default you will not have access to applications that require X11 to run.&lt;br /&gt;
&lt;br /&gt;
All UMIACS Windows hosts are installed with either the SSH Secure Shell Client or [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY].&lt;br /&gt;
&lt;br /&gt;
==X11 Forwarding==&lt;br /&gt;
By default, SSH only gives the user shell access to a host.  Enabling X11 Forwarding allows users to run applications with Graphical User Interfaces.&lt;br /&gt;
&lt;br /&gt;
Under Linux and macOS, the following command from a terminal will connect a client computer to the UMIACS [[OpenLAB]] using X11 Forwarding. Please note that under macOS, [http://xquartz.macosforge.org/landing/ xQuartz] is required on the client machine to forward X sessions from the remote session.&lt;br /&gt;
 # ssh &#039;&#039;&#039;-Y&#039;&#039;&#039; bkirz@openlab.umiacs.umd.edu&lt;br /&gt;
&lt;br /&gt;
Under Windows, you will need to forward X through [http://sourceforge.net/projects/vcxsrv/ VcXsrv] or [http://www.straightrunning.com/XmingNotes/ Xming].&lt;br /&gt;
&lt;br /&gt;
First, enable X forwarding on PuTTY. The option is under Connection &amp;gt; SSH &amp;gt; X11, shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Putty-x-forwarding.png]]&lt;br /&gt;
&lt;br /&gt;
Next, configure your SSH session and click open to start a SSH session.&lt;br /&gt;
&lt;br /&gt;
After this has been done, every time you want to use X forwarding, you need to make sure VcXsrv or Xming has been started (it will appear in your task tray) through the start menu programs.&lt;br /&gt;
Now, you will be able to use Xwindow programs from your ssh client.&lt;br /&gt;
&lt;br /&gt;
==SSH Tunneling==&lt;br /&gt;
&lt;br /&gt;
You can tunnel one or more ports through an SSH connection such that your packets will look like they are coming from the host you are tunneling to.   This is helpful for services that you would be normally blocked by a firewall.&lt;br /&gt;
&lt;br /&gt;
Please see the [[SecureShellTunneling]] page for more information.&lt;br /&gt;
&lt;br /&gt;
==SSH Keys (and Passwordless SSH)==&lt;br /&gt;
SSH can utilize public key encryption to authenticate and authorize users. This can be considered more secure especially if you secure your private key with a pass-phrase. The keys themselves are not susceptible to brute force attacks like normal passwords over SSH are.&lt;br /&gt;
&lt;br /&gt;
Please see the [[SSH/Keys]] page for more information.&lt;br /&gt;
&lt;br /&gt;
==Verify remote host SSH fingerprint==&lt;br /&gt;
The SSH protocol relies on host keys to verify the identify of a given host.  Each host as a unique key for the various different protocols supported.  &lt;br /&gt;
&lt;br /&gt;
When connecting to a remove host for the first time, or when the remote host&#039;s local host key configuration has changed, you may see the following prompt:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ssh sabobbin@openlab&lt;br /&gt;
The authenticity of host &#039;openlab (128.8.132.247)&#039; can&#039;t be established.&lt;br /&gt;
RSA key fingerprint is 25:83:aa:df:f5:ad:5f:08:c9:8a:a3:5d:97:8b:48:1f.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)?&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It is considered best practice to verify the key fingerprint with the actual key of the host.  UMIACS maintains a reference of SSH key fingerprints available at the following link: &lt;br /&gt;
https://gitlab.umiacs.umd.edu/staff/ssh-fingerprints/blob/master/fingerprints&lt;br /&gt;
&lt;br /&gt;
It is important to note that each key type has a different fingerprint.  Depending on your local configuration, your client may prefer a specific type of key.  The following commands can be used to determine the fingerprint of a given key type on a remote host:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ssh-keyscan -t rsa openlab.umiacs.umd.edu &amp;gt; key&lt;br /&gt;
# openlab.umiacs.umd.edu:22 SSH-2.0-OpenSSH_8.0&lt;br /&gt;
$ ssh-keygen -l -E md5 -f key&lt;br /&gt;
2048 MD5:25:83:aa:df:f5:ad:5f:08:c9:8a:a3:5d:97:8b:48:1f openlab.umiacs.umd.edu (RSA)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, or notice a discrepancy, please submit a request to staff@umiacs.umd.edu.&lt;br /&gt;
&lt;br /&gt;
===Windows / PuTTY Verification===&lt;br /&gt;
If you use PuTTY to connect to remote hosts, the prompt will be similar to the following:&lt;br /&gt;
&lt;br /&gt;
[[File:Putty ssh host key prompt.png]]&lt;br /&gt;
&lt;br /&gt;
If the host key reported by PuTTY matches the [https://gitlab.umiacs.umd.edu/staff/ssh-fingerprints/blob/master/fingerprints Documented entry for that host], it is safe to click &#039;yes&#039;.  If they do not match, please report the issue to [mailto:staff@umiacs.umd.edu staff@umiacs.umd.edu].&lt;br /&gt;
&lt;br /&gt;
===Other Platforms===&lt;br /&gt;
* [https://winscp.net/eng/docs/faq_hostkey WinSCP]&lt;br /&gt;
&lt;br /&gt;
==Long Running Processes==&lt;br /&gt;
If you are dealing with a long running process that is inhibiting your ability to work regularly, you may want to run your processes inside a screen on the host that you&#039;re connecting to. This way, if the connection is dropped for any reason the screen session will automatically detach on the host and will continue running so that you can reattach it at a later time when you&#039;ve connected again. Please see our documentation on [[Screen | GNU Screen]] for more information.&lt;br /&gt;
&lt;br /&gt;
==Further Information==&lt;br /&gt;
[http://www.openssh.org/ OpenSSH]&lt;br /&gt;
&lt;br /&gt;
[http://www.openssh.com/windows.html Windows Clients]&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=SSH/Keys&amp;diff=9437</id>
		<title>SSH/Keys</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=SSH/Keys&amp;diff=9437"/>
		<updated>2020-10-23T20:42:32Z</updated>

		<summary type="html">&lt;p&gt;Meganst: DOCS-908&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SSH can utilize public key encryption to authenticate and authorize users.  This can be considered more secure especially if you secure your private key with a pass-phrase.  The keys themselves are not susceptible to brute force attacks like normal passwords over SSH are.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
;Prerequisites&lt;br /&gt;
#If using batch clusters (e.g. [[SLURM]]) please read [[SSH/Keys#Batch clusters | Batch clusters]] prior to creating a new key.&lt;br /&gt;
#Determine your OS (and if Windows, what you will be using to create the key)&lt;br /&gt;
#*Windows&lt;br /&gt;
#**Git bash: follow instructions for Linux/MacOSX/Bash and Git Bash (for Windows)&lt;br /&gt;
#**PuTTY: follow instructions for Windows (and PuTTY subsections)&lt;br /&gt;
#**TTSSH2: follow instructions for Windows (and TTSSH2 subsections)&lt;br /&gt;
#**[[BashForWindows10 | Windows Subsystem for Linux (WSL)]]: follow instructions for &#039;Linux/MacOSX/Bash and Git Bash (for Windows)&#039;&lt;br /&gt;
#*Linux: follow instructions for &#039;Linux/MacOSX/Bash and Git Bash (for Windows)&#039;&lt;br /&gt;
#*MacOSX: follow instructions for &#039;Linux/MacOSX/Bash and Git Bash (for Windows)&#039;&lt;br /&gt;
;Steps&lt;br /&gt;
#[[SSH/Keys#Create and store the key pair | Create and store the key pair]]&lt;br /&gt;
#[[SSH/Keys#Copy the public key | Copy the public key]]&lt;br /&gt;
#If Windows, [[SSH/Keys#Adding Keys to SSH Clients (Windows Only) | Adding Keys to SSH Clients (Windows Only)]]&lt;br /&gt;
;Additional Considerations&lt;br /&gt;
#The [[SSH/Keys#SSH Agents | SSH Agents]] section is not a required component of creating and using an SSH key, but can be very useful if you choose to create a password to protect your SSH key, but find yourself needing to enter that password many times in a session. [[SSH/Keys#SSH Agents | SSH Agents]] allow you to temporarily use your SSH key without a password for a set period of time. Please see the [[SSH/Keys#SSH Agents | SSH Agents]] section for more information.&lt;br /&gt;
&lt;br /&gt;
==Create and store the key pair==&lt;br /&gt;
&lt;br /&gt;
The first step is to generate a key which will create two files filled with long strings of characters.  A public key file that you may distribute to any machine you want to use it on and a private key that needs to be kept secure.  &#039;&#039;&#039;Allowing anyone to read this private key will compromise the security of the key and could allow someone to access any resources secured by this key without your consent.&#039;&#039;&#039; There are a number of different key types but &amp;lt;code&amp;gt;rsa&amp;lt;/code&amp;gt; is the most compatible.  &lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
;Git Bash&lt;br /&gt;
:See [[SSH/Keys#Linux.2FMacOSX.2FBash_and_Git_Bash_.28for_Windows.29 | Linux/MacOSX/Bash and Git Bash (for Windows)]]&lt;br /&gt;
;PuTTY &lt;br /&gt;
# Click on the start menu and search for PuTTYgen. Open the application&lt;br /&gt;
# Verify that you are attempting to create an &amp;quot;SSH2 RSA&amp;quot; key by clicking on the appropriate box&lt;br /&gt;
# Click generate and follow the instructions for generating your keys&lt;br /&gt;
# Add passphrase if wanted and save both the public and private keys&lt;br /&gt;
;TTSSH2&lt;br /&gt;
# Open the application&lt;br /&gt;
# Cancel the first box&lt;br /&gt;
# Go to setup on the menu bar and go to SSH KeyGenerator &lt;br /&gt;
# Click generate and follow the instructions for generating your key&lt;br /&gt;
# Add passphrase if wanted and save both the public and private keys&lt;br /&gt;
&lt;br /&gt;
===Linux/MacOSX/Bash and Git Bash (for Windows)===&lt;br /&gt;
;Create a new key with a password&lt;br /&gt;
You can run the command &amp;lt;code&amp;gt;ssh-keygen -t rsa&amp;lt;/code&amp;gt; to generate the new public and private key.  It will prompt you for a file to create the private key and then for the public key append &amp;lt;code&amp;gt;.pub&amp;lt;/code&amp;gt; extension and store it in the same directory.  Pressing enter at the passphrase step twice will create a key without a pass-phrase.&lt;br /&gt;
&lt;br /&gt;
Note: If you change the file in which to save the key, please ensure that it still starts with &#039;id&#039;, such as &#039;id_umiacs_rsa&#039;.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
-bash-4.2$ ssh-keygen -t rsa&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/home/derek/.ssh/id_rsa):&lt;br /&gt;
Created directory &#039;/home/derek/.ssh&#039;.&lt;br /&gt;
Enter passphrase (empty for no passphrase):&lt;br /&gt;
Enter same passphrase again:&lt;br /&gt;
Your identification has been saved in /home/derek/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /home/derek/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
32:bf:db:74:1b:7e:d7:c6:4b:b5:6f:a8:82:55:3f:bf derek@localhost.localdomain&lt;br /&gt;
The key&#039;s randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|                 |&lt;br /&gt;
|                 |&lt;br /&gt;
|            .    |&lt;br /&gt;
|      o S  . .  .|&lt;br /&gt;
|       +  .   o o|&lt;br /&gt;
|        .o. o  B.|&lt;br /&gt;
|        .+.o o+ O|&lt;br /&gt;
|        o...+o E+|&lt;br /&gt;
+-----------------+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Create a new key without a password&lt;br /&gt;
You can simplify the existing example above by telling it you do not want a pass-phrase and can run the command &amp;lt;code&amp;gt;ssh-keygen -t rsa -N &amp;quot;&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note: If you change the file in which to save the key, please ensure that it still starts with &#039;id&#039;, such as &#039;id_umiacs_rsa&#039;.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
-bash-4.2$ ssh-keygen -t rsa -N &amp;quot;&amp;quot;&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/home/derek/.ssh/id_rsa):&lt;br /&gt;
Created directory &#039;/home/derek/.ssh&#039;.&lt;br /&gt;
Your identification has been saved in /home/derek/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /home/derek/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
ff:7a:99:28:fc:63:d6:10:44:4c:2e:68:76:44:76:7a derek@localhost.localdomain&lt;br /&gt;
The key&#039;s randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|       .+++      |&lt;br /&gt;
|       + +o      |&lt;br /&gt;
|      + +.E      |&lt;br /&gt;
|     o . o.      |&lt;br /&gt;
|        S  .     |&lt;br /&gt;
|         ..      |&lt;br /&gt;
|       .  .+ o   |&lt;br /&gt;
|        o =.=    |&lt;br /&gt;
|         =o+.    |&lt;br /&gt;
+-----------------+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Modify permissions&lt;br /&gt;
Modify the permissions of your &amp;lt;tt&amp;gt;.ssh&amp;lt;/tt&amp;gt; directory as well as the private key file that you just created with &amp;lt;tt&amp;gt;chmod&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 700 ~/.ssh &lt;br /&gt;
chmod 600 ~/.ssh/id_rsa&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you named your file something other than id_rsa, change &amp;lt;tt&amp;gt;id_rsa&amp;lt;/tt&amp;gt; to the name of the file.&lt;br /&gt;
&lt;br /&gt;
==Copy the public key==&lt;br /&gt;
Once you have a generated a key pair you will want to add it to one or more computers to allow you to access them.  &lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
For Windows hosts you can use [http://winscp.net/eng/download.php WinSCP] to copy the public key file onto a remote host. The root file system for the bash subsystem for windows is located under C:\Users\&amp;lt;username&amp;gt;\appdata\local\lxss\&lt;br /&gt;
&lt;br /&gt;
===Linux/MacOSX/Bash and Git Bash (for Windows)===&lt;br /&gt;
This can be done with the &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; command and it will prompt you the first time for your current password (&#039;&#039;&#039;NOT your pass-phrase&#039;&#039;&#039;). You can replace localhost with any other hostname you want to copy the key to. You can also specify a alternate user or identity file if you need to, please &amp;lt;code&amp;gt;man ssh-copy-id&amp;lt;/code&amp;gt; for more information within your terminal. This command will ensure that not only it copies your key but secures the file so that no one can tamper and add additional authorized keys to the file on the remote host. &lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
-bash-4.2$ ssh-copy-id localhost&lt;br /&gt;
/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed&lt;br /&gt;
/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys&lt;br /&gt;
derek@localhost&#039;s password:&lt;br /&gt;
&lt;br /&gt;
Number of key(s) added: 1&lt;br /&gt;
&lt;br /&gt;
Now try logging into the machine, with:   &amp;quot;ssh &#039;localhost&#039;&amp;quot;&lt;br /&gt;
and check to make sure that only the key(s) you wanted were added.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Adding Keys to SSH Clients (Windows Only)== &lt;br /&gt;
;PuTTY&lt;br /&gt;
# Open Putty and enter the Fully Qualified Domain name for the host you wish to connect to &lt;br /&gt;
# Go to the Connections tab on the side panel and click on the data subsection &lt;br /&gt;
# Under data enter your default user into the first box (Auto-login Username)&lt;br /&gt;
# Go to the SSH section of the side panel and then go to the Auth Section&lt;br /&gt;
# Under Auth click on the browse and navigate to the saved private key&lt;br /&gt;
# Go back to session on the side panel and save your settings by typing in a name in saved sessions pressing the save button&lt;br /&gt;
;TTSSH2&lt;br /&gt;
# Open the application&lt;br /&gt;
# Cancel the first box&lt;br /&gt;
# Go to setup on the menu bar and go to SSH Authentication&lt;br /&gt;
# Enter your username, Click on the option labeled &amp;quot;Use RSA ... key to log in&amp;quot;, then use the private key button located next to this line to navigate to your private key file, and click Ok&lt;br /&gt;
&lt;br /&gt;
==Batch clusters==&lt;br /&gt;
Our [[SLURM]] clusters process jobs in batch and require the ability to ssh without entering a password. When creating a key for use with [[SLURM]], follow the above instructions for creating keys without passwords.&lt;br /&gt;
&lt;br /&gt;
After creating this key pair please make sure you follow the [[SSH/Keys#Copy_the_public_key | copy the public key]] instructions above to &amp;lt;code&amp;gt;localhost&amp;lt;/code&amp;gt;. This will ensure that your key will be usable on all the cluster nodes since they have a shared home directory.&lt;br /&gt;
&lt;br /&gt;
==SSH Agents==&lt;br /&gt;
&lt;br /&gt;
While it is very useful to protect your SSH key pair with a pass-phrase it can very time consuming to re-type the pass-phrase over and over. SSH provides a agent that runs in the background and allow you add a key(s) to it with a time limit that they will be unlocked for.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-agent [SHELL]&lt;br /&gt;
ssh-add -t [TIME]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will need to specify a shell in this case &amp;lt;code&amp;gt;bash&amp;lt;/code&amp;gt; but could be any shell as appropriate (&amp;lt;code&amp;gt;tcsh&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;sh&amp;lt;/code&amp;gt;, etc). The time specified by &amp;lt;code&amp;gt;-t&amp;lt;/code&amp;gt; is specified in seconds. &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
(The following would start a bash shell with passwordless SSH active for 30 minutes.)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-agent bash&lt;br /&gt;
ssh-add -t 1800&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will be prompted for your passphrase and, when entered correctly, you will be able to ssh without entering a password. You can check what keys are load when you are running inside a ssh-agent by using the command &amp;lt;code&amp;gt;ssh-add -l&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
bash-4.2$ ssh-add -l&lt;br /&gt;
2048 ee:83:10:c8:2f:2c:17:5e:ef:80:42:7e:ff:75:9e:53 /home/derek/.ssh/id_rsa (RSA)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=SSH/Keys&amp;diff=9436</id>
		<title>SSH/Keys</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=SSH/Keys&amp;diff=9436"/>
		<updated>2020-10-23T20:22:51Z</updated>

		<summary type="html">&lt;p&gt;Meganst: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SSH can utilize public key encryption to authenticate and authorize users.  This can be considered more secure especially if you secure your private key with a pass-phrase.  The keys themselves are not susceptible to brute force attacks like normal passwords over SSH are.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
;Prerequisites&lt;br /&gt;
#If using batch clusters (e.g. [[SLURM]]) please read [[SSH/Keys#Batch clusters | Batch clusters]] prior to creating a new key.&lt;br /&gt;
#Determine your OS (and if Windows, what you will be using to create the key)&lt;br /&gt;
#*Windows&lt;br /&gt;
#**Git bash: follow instructions for Linux/MacOSX/Bash and Git Bash (for Windows)&lt;br /&gt;
#**PuTTY: follow instructions for Windows (and PuTTY subsections)&lt;br /&gt;
#**TTSSH2: follow instructions for Windows (and TTSSH2 subsections)&lt;br /&gt;
#**[[BashForWindows10 | Windows Subsystem for Linux (WSL)]]: follow instructions for &#039;Linux/MacOSX/Bash and Git Bash (for Windows)&#039;&lt;br /&gt;
#*Linux: follow instructions for &#039;Linux/MacOSX/Bash and Git Bash (for Windows)&#039;&lt;br /&gt;
#*MacOSX: follow instructions for &#039;Linux/MacOSX/Bash and Git Bash (for Windows)&#039;&lt;br /&gt;
;Steps&lt;br /&gt;
#[[SSH/Keys#Create and store the key pair | Create and store the key pair]]&lt;br /&gt;
#[[SSH/Keys#Copy the public key | Copy the public key]]&lt;br /&gt;
#If Windows, [[SSH/Keys#Adding Keys to SSH Clients (Windows Only) | Adding Keys to SSH Clients (Windows Only)]]&lt;br /&gt;
;Additional Considerations&lt;br /&gt;
#The [[SSH/Keys#SSH Agents | SSH Agents]] section is not a required component of creating and using an SSH key, but can be very useful if you choose to create a password to protect your SSH key, but find yourself needing to enter that password many times in a session. [[SSH/Keys#SSH Agents | SSH Agents]] allow you to temporarily use your SSH key without a password for a set period of time. Please see the [[SSH/Keys#SSH Agents | SSH Agents]] section for more information.&lt;br /&gt;
&lt;br /&gt;
==Create and store the key pair==&lt;br /&gt;
&lt;br /&gt;
The first step is to generate a key which will create two files filled with long strings of characters.  A public key file that you may distribute to any machine you want to use it on and a private key that needs to be kept secure.  &#039;&#039;&#039;Allowing anyone to read this private key will compromise the security of the key and could allow someone to access any resources secured by this key without your consent.&#039;&#039;&#039; There are a number of different key types but &amp;lt;code&amp;gt;rsa&amp;lt;/code&amp;gt; is the most compatible.  &lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
;Git Bash&lt;br /&gt;
:See [[SSH/Keys#Linux.2FMacOSX.2FBash_and_Git_Bash_.28for_Windows.29 | Linux/MacOSX/Bash and Git Bash (for Windows)]]&lt;br /&gt;
;PuTTY &lt;br /&gt;
# Click on the start menu and search for PuTTYgen. Open the application&lt;br /&gt;
# Verify that you are attempting to create an &amp;quot;SSH2 RSA&amp;quot; key by clicking on the appropriate box&lt;br /&gt;
# Click generate and follow the instructions for generating your keys&lt;br /&gt;
# Add passphrase if wanted and save both the public and private keys&lt;br /&gt;
;TTSSH2&lt;br /&gt;
# Open the application&lt;br /&gt;
# Cancel the first box&lt;br /&gt;
# Go to setup on the menu bar and go to SSH KeyGenerator &lt;br /&gt;
# Click generate and follow the instructions for generating your key&lt;br /&gt;
# Add passphrase if wanted and save both the public and private keys&lt;br /&gt;
&lt;br /&gt;
===Linux/MacOSX/Bash and Git Bash (for Windows)===&lt;br /&gt;
You can run the command &amp;lt;code&amp;gt;ssh-keygen -t rsa&amp;lt;/code&amp;gt; to generate the new public and private key.  It will prompt you for a file to create the private key and then for the public key append &amp;lt;code&amp;gt;.pub&amp;lt;/code&amp;gt; extension and store it in the same directory.  Pressing enter at the passphrase step twice will create a key without a pass-phrase.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
-bash-4.2$ ssh-keygen -t rsa&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/home/derek/.ssh/id_rsa):&lt;br /&gt;
Created directory &#039;/home/derek/.ssh&#039;.&lt;br /&gt;
Enter passphrase (empty for no passphrase):&lt;br /&gt;
Enter same passphrase again:&lt;br /&gt;
Your identification has been saved in /home/derek/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /home/derek/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
32:bf:db:74:1b:7e:d7:c6:4b:b5:6f:a8:82:55:3f:bf derek@localhost.localdomain&lt;br /&gt;
The key&#039;s randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|                 |&lt;br /&gt;
|                 |&lt;br /&gt;
|            .    |&lt;br /&gt;
|      o S  . .  .|&lt;br /&gt;
|       +  .   o o|&lt;br /&gt;
|        .o. o  B.|&lt;br /&gt;
|        .+.o o+ O|&lt;br /&gt;
|        o...+o E+|&lt;br /&gt;
+-----------------+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Passwordless Keys&lt;br /&gt;
You can simplify the existing example above by telling it you do not want a pass-phrase and can run the command &amp;lt;code&amp;gt;ssh-keygen -t rsa -N &amp;quot;&amp;quot;&amp;lt;/code&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
-bash-4.2$ ssh-keygen -t rsa -N &amp;quot;&amp;quot;&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/home/derek/.ssh/id_rsa):&lt;br /&gt;
Created directory &#039;/home/derek/.ssh&#039;.&lt;br /&gt;
Your identification has been saved in /home/derek/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /home/derek/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
ff:7a:99:28:fc:63:d6:10:44:4c:2e:68:76:44:76:7a derek@localhost.localdomain&lt;br /&gt;
The key&#039;s randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|       .+++      |&lt;br /&gt;
|       + +o      |&lt;br /&gt;
|      + +.E      |&lt;br /&gt;
|     o . o.      |&lt;br /&gt;
|        S  .     |&lt;br /&gt;
|         ..      |&lt;br /&gt;
|       .  .+ o   |&lt;br /&gt;
|        o =.=    |&lt;br /&gt;
|         =o+.    |&lt;br /&gt;
+-----------------+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Copy the public key==&lt;br /&gt;
Once you have a generated a key pair you will want to add it to one or more computers to allow you to access them.  &lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
For Windows hosts you can use [http://winscp.net/eng/download.php WinSCP] to copy the public key file onto a remote host. The root file system for the bash subsystem for windows is located under C:\Users\&amp;lt;username&amp;gt;\appdata\local\lxss\&lt;br /&gt;
&lt;br /&gt;
===Linux/MacOSX/Bash and Git Bash (for Windows)===&lt;br /&gt;
This can be done with the &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; command and it will prompt you the first time for your current password (&#039;&#039;&#039;NOT your pass-phrase&#039;&#039;&#039;). You can replace localhost with any other hostname you want to copy the key to. You can also specify a alternate user or identity file if you need to, please &amp;lt;code&amp;gt;man ssh-copy-id&amp;lt;/code&amp;gt; for more information within your terminal. This command will ensure that not only it copies your key but secures the file so that no one can tamper and add additional authorized keys to the file on the remote host. &lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
-bash-4.2$ ssh-copy-id localhost&lt;br /&gt;
/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed&lt;br /&gt;
/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys&lt;br /&gt;
derek@localhost&#039;s password:&lt;br /&gt;
&lt;br /&gt;
Number of key(s) added: 1&lt;br /&gt;
&lt;br /&gt;
Now try logging into the machine, with:   &amp;quot;ssh &#039;localhost&#039;&amp;quot;&lt;br /&gt;
and check to make sure that only the key(s) you wanted were added.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Adding Keys to SSH Clients (Windows Only)== &lt;br /&gt;
;PuTTY&lt;br /&gt;
# Open Putty and enter the Fully Qualified Domain name for the host you wish to connect to &lt;br /&gt;
# Go to the Connections tab on the side panel and click on the data subsection &lt;br /&gt;
# Under data enter your default user into the first box (Auto-login Username)&lt;br /&gt;
# Go to the SSH section of the side panel and then go to the Auth Section&lt;br /&gt;
# Under Auth click on the browse and navigate to the saved private key&lt;br /&gt;
# Go back to session on the side panel and save your settings by typing in a name in saved sessions pressing the save button&lt;br /&gt;
;TTSSH2&lt;br /&gt;
# Open the application&lt;br /&gt;
# Cancel the first box&lt;br /&gt;
# Go to setup on the menu bar and go to SSH Authentication&lt;br /&gt;
# Enter your username, Click on the option labeled &amp;quot;Use RSA ... key to log in&amp;quot;, then use the private key button located next to this line to navigate to your private key file, and click Ok&lt;br /&gt;
&lt;br /&gt;
==Batch clusters==&lt;br /&gt;
Our [[SLURM]] clusters process jobs in batch and require the ability to ssh without entering a password. When creating a key for use with [[SLURM]], follow the above instructions for creating keys without passwords.&lt;br /&gt;
&lt;br /&gt;
After creating this key pair please make sure you follow the [[SSH/Keys#Copy_the_public_key | copy the public key]] instructions above to &amp;lt;code&amp;gt;localhost&amp;lt;/code&amp;gt;. This will ensure that your key will be usable on all the cluster nodes since they have a shared home directory.&lt;br /&gt;
&lt;br /&gt;
==SSH Agents==&lt;br /&gt;
&lt;br /&gt;
While it is very useful to protect your SSH key pair with a pass-phrase it can very time consuming to re-type the pass-phrase over and over. SSH provides a agent that runs in the background and allow you add a key(s) to it with a time limit that they will be unlocked for.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-agent [SHELL]&lt;br /&gt;
ssh-add -t [TIME]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will need to specify a shell in this case &amp;lt;code&amp;gt;bash&amp;lt;/code&amp;gt; but could be any shell as appropriate (&amp;lt;code&amp;gt;tcsh&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;sh&amp;lt;/code&amp;gt;, etc). The time specified by &amp;lt;code&amp;gt;-t&amp;lt;/code&amp;gt; is specified in seconds. &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
(The following would start a bash shell with passwordless SSH active for 30 minutes.)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-agent bash&lt;br /&gt;
ssh-add -t 1800&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will be prompted for your passphrase and, when entered correctly, you will be able to ssh without entering a password. You can check what keys are load when you are running inside a ssh-agent by using the command &amp;lt;code&amp;gt;ssh-add -l&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
bash-4.2$ ssh-add -l&lt;br /&gt;
2048 ee:83:10:c8:2f:2c:17:5e:ef:80:42:7e:ff:75:9e:53 /home/derek/.ssh/id_rsa (RSA)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=SSH/Keys&amp;diff=9435</id>
		<title>SSH/Keys</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=SSH/Keys&amp;diff=9435"/>
		<updated>2020-10-23T20:21:58Z</updated>

		<summary type="html">&lt;p&gt;Meganst: DOCS-908&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SSH can utilize public key encryption to authenticate and authorize users.  This can be considered more secure especially if you secure your private key with a pass-phrase.  The keys themselves are not susceptible to brute force attacks like normal passwords over SSH are.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
;Prerequisites&lt;br /&gt;
#If using batch clusters (e.g. [[SLURM]]) please read [[##Batch clusters | Batch clusters]] prior to creating a new key.&lt;br /&gt;
#Determine your OS (and if Windows, what you will be using to create the key)&lt;br /&gt;
#*Windows&lt;br /&gt;
#**Git bash: follow instructions for Linux/MacOSX/Bash and Git Bash (for Windows)&lt;br /&gt;
#**PuTTY: follow instructions for Windows (and PuTTY subsections)&lt;br /&gt;
#**TTSSH2: follow instructions for Windows (and TTSSH2 subsections)&lt;br /&gt;
#**[[BashForWindows10 | Windows Subsystem for Linux (WSL)]]: follow instructions for &#039;Linux/MacOSX/Bash and Git Bash (for Windows)&#039;&lt;br /&gt;
#*Linux: follow instructions for &#039;Linux/MacOSX/Bash and Git Bash (for Windows)&#039;&lt;br /&gt;
#*MacOSX: follow instructions for &#039;Linux/MacOSX/Bash and Git Bash (for Windows)&#039;&lt;br /&gt;
;Steps&lt;br /&gt;
#[[SSH/Keys#Create and store the key pair | Create and store the key pair]]&lt;br /&gt;
#[[SSH/Keys#Copy the public key | Copy the public key]]&lt;br /&gt;
#If Windows, [[SSH/Keys#Adding Keys to SSH Clients (Windows Only) | Adding Keys to SSH Clients (Windows Only)]]&lt;br /&gt;
;Additional Considerations&lt;br /&gt;
#The [[SSH/Keys#SSH Agents | SSH Agents]] section is not a required component of creating and using an SSH key, but can be very useful if you choose to create a password to protect your SSH key, but find yourself needing to enter that password many times in a session. [[SSH/Keys#SSH Agents | SSH Agents]] allow you to temporarily use your SSH key without a password for a set period of time. Please see the [[SSH/Keys#SSH Agents | SSH Agents]] section for more information.&lt;br /&gt;
&lt;br /&gt;
==Create and store the key pair==&lt;br /&gt;
&lt;br /&gt;
The first step is to generate a key which will create two files filled with long strings of characters.  A public key file that you may distribute to any machine you want to use it on and a private key that needs to be kept secure.  &#039;&#039;&#039;Allowing anyone to read this private key will compromise the security of the key and could allow someone to access any resources secured by this key without your consent.&#039;&#039;&#039; There are a number of different key types but &amp;lt;code&amp;gt;rsa&amp;lt;/code&amp;gt; is the most compatible.  &lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
;Git Bash&lt;br /&gt;
:See [[SSH/Keys#Linux.2FMacOSX.2FBash_and_Git_Bash_.28for_Windows.29 | Linux/MacOSX/Bash and Git Bash (for Windows)]]&lt;br /&gt;
;PuTTY &lt;br /&gt;
# Click on the start menu and search for PuTTYgen. Open the application&lt;br /&gt;
# Verify that you are attempting to create an &amp;quot;SSH2 RSA&amp;quot; key by clicking on the appropriate box&lt;br /&gt;
# Click generate and follow the instructions for generating your keys&lt;br /&gt;
# Add passphrase if wanted and save both the public and private keys&lt;br /&gt;
;TTSSH2&lt;br /&gt;
# Open the application&lt;br /&gt;
# Cancel the first box&lt;br /&gt;
# Go to setup on the menu bar and go to SSH KeyGenerator &lt;br /&gt;
# Click generate and follow the instructions for generating your key&lt;br /&gt;
# Add passphrase if wanted and save both the public and private keys&lt;br /&gt;
&lt;br /&gt;
===Linux/MacOSX/Bash and Git Bash (for Windows)===&lt;br /&gt;
You can run the command &amp;lt;code&amp;gt;ssh-keygen -t rsa&amp;lt;/code&amp;gt; to generate the new public and private key.  It will prompt you for a file to create the private key and then for the public key append &amp;lt;code&amp;gt;.pub&amp;lt;/code&amp;gt; extension and store it in the same directory.  Pressing enter at the passphrase step twice will create a key without a pass-phrase.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
-bash-4.2$ ssh-keygen -t rsa&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/home/derek/.ssh/id_rsa):&lt;br /&gt;
Created directory &#039;/home/derek/.ssh&#039;.&lt;br /&gt;
Enter passphrase (empty for no passphrase):&lt;br /&gt;
Enter same passphrase again:&lt;br /&gt;
Your identification has been saved in /home/derek/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /home/derek/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
32:bf:db:74:1b:7e:d7:c6:4b:b5:6f:a8:82:55:3f:bf derek@localhost.localdomain&lt;br /&gt;
The key&#039;s randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|                 |&lt;br /&gt;
|                 |&lt;br /&gt;
|                 |&lt;br /&gt;
|            .    |&lt;br /&gt;
|      o S  . .  .|&lt;br /&gt;
|       +  .   o o|&lt;br /&gt;
|        .o. o  B.|&lt;br /&gt;
|        .+.o o+ O|&lt;br /&gt;
|        o...+o E+|&lt;br /&gt;
+-----------------+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Passwordless Keys&lt;br /&gt;
You can simplify the existing example above by telling it you do not want a pass-phrase and can run the command &amp;lt;code&amp;gt;ssh-keygen -t rsa -N &amp;quot;&amp;quot;&amp;lt;/code&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
-bash-4.2$ ssh-keygen -t rsa -N &amp;quot;&amp;quot;&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/home/derek/.ssh/id_rsa):&lt;br /&gt;
Created directory &#039;/home/derek/.ssh&#039;.&lt;br /&gt;
Your identification has been saved in /home/derek/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /home/derek/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
ff:7a:99:28:fc:63:d6:10:44:4c:2e:68:76:44:76:7a derek@localhost.localdomain&lt;br /&gt;
The key&#039;s randomart image is:&lt;br /&gt;
+--[ RSA 2048]----+&lt;br /&gt;
|       .+++      |&lt;br /&gt;
|       + +o      |&lt;br /&gt;
|      + +.E      |&lt;br /&gt;
|     o . o.      |&lt;br /&gt;
|        S  .     |&lt;br /&gt;
|         ..      |&lt;br /&gt;
|       .  .+ o   |&lt;br /&gt;
|        o =.=    |&lt;br /&gt;
|         =o+.    |&lt;br /&gt;
+-----------------+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Copy the public key==&lt;br /&gt;
Once you have a generated a key pair you will want to add it to one or more computers to allow you to access them.  &lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
For Windows hosts you can use [http://winscp.net/eng/download.php WinSCP] to copy the public key file onto a remote host. The root file system for the bash subsystem for windows is located under C:\Users\&amp;lt;username&amp;gt;\appdata\local\lxss\&lt;br /&gt;
&lt;br /&gt;
===Linux/MacOSX/Bash and Git Bash (for Windows)===&lt;br /&gt;
This can be done with the &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; command and it will prompt you the first time for your current password (&#039;&#039;&#039;NOT your pass-phrase&#039;&#039;&#039;). You can replace localhost with any other hostname you want to copy the key to. You can also specify a alternate user or identity file if you need to, please &amp;lt;code&amp;gt;man ssh-copy-id&amp;lt;/code&amp;gt; for more information within your terminal. This command will ensure that not only it copies your key but secures the file so that no one can tamper and add additional authorized keys to the file on the remote host. &lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
-bash-4.2$ ssh-copy-id localhost&lt;br /&gt;
/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed&lt;br /&gt;
/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys&lt;br /&gt;
derek@localhost&#039;s password:&lt;br /&gt;
&lt;br /&gt;
Number of key(s) added: 1&lt;br /&gt;
&lt;br /&gt;
Now try logging into the machine, with:   &amp;quot;ssh &#039;localhost&#039;&amp;quot;&lt;br /&gt;
and check to make sure that only the key(s) you wanted were added.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Adding Keys to SSH Clients (Windows Only)== &lt;br /&gt;
;PuTTY&lt;br /&gt;
# Open Putty and enter the Fully Qualified Domain name for the host you wish to connect to &lt;br /&gt;
# Go to the Connections tab on the side panel and click on the data subsection &lt;br /&gt;
# Under data enter your default user into the first box (Auto-login Username)&lt;br /&gt;
# Go to the SSH section of the side panel and then go to the Auth Section&lt;br /&gt;
# Under Auth click on the browse and navigate to the saved private key&lt;br /&gt;
# Go back to session on the side panel and save your settings by typing in a name in saved sessions pressing the save button&lt;br /&gt;
;TTSSH2&lt;br /&gt;
# Open the application&lt;br /&gt;
# Cancel the first box&lt;br /&gt;
# Go to setup on the menu bar and go to SSH Authentication&lt;br /&gt;
# Enter your username, Click on the option labeled &amp;quot;Use RSA ... key to log in&amp;quot;, then use the private key button located next to this line to navigate to your private key file, and click Ok&lt;br /&gt;
&lt;br /&gt;
==Batch clusters==&lt;br /&gt;
Our [[SLURM]] clusters process jobs in batch and require the ability to ssh without entering a password. When creating a key for use with [[SLURM]], follow the above instructions for creating keys without passwords.&lt;br /&gt;
&lt;br /&gt;
After creating this key pair please make sure you follow the [[SSH/Keys#Copy_the_public_key | copy the public key]] instructions above to &amp;lt;code&amp;gt;localhost&amp;lt;/code&amp;gt;. This will ensure that your key will be usable on all the cluster nodes since they have a shared home directory.&lt;br /&gt;
&lt;br /&gt;
==SSH Agents==&lt;br /&gt;
&lt;br /&gt;
While it is very useful to protect your SSH key pair with a pass-phrase it can very time consuming to re-type the pass-phrase over and over. SSH provides a agent that runs in the background and allow you add a key(s) to it with a time limit that they will be unlocked for.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-agent [SHELL]&lt;br /&gt;
ssh-add -t [TIME]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will need to specify a shell in this case &amp;lt;code&amp;gt;bash&amp;lt;/code&amp;gt; but could be any shell as appropriate (&amp;lt;code&amp;gt;tcsh&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;sh&amp;lt;/code&amp;gt;, etc). The time specified by &amp;lt;code&amp;gt;-t&amp;lt;/code&amp;gt; is specified in seconds. &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
(The following would start a bash shell with passwordless SSH active for 30 minutes.)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh-agent bash&lt;br /&gt;
ssh-add -t 1800&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will be prompted for your passphrase and, when entered correctly, you will be able to ssh without entering a password. You can check what keys are load when you are running inside a ssh-agent by using the command &amp;lt;code&amp;gt;ssh-add -l&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;pre&amp;gt;&lt;br /&gt;
bash-4.2$ ssh-add -l&lt;br /&gt;
2048 ee:83:10:c8:2f:2c:17:5e:ef:80:42:7e:ff:75:9e:53 /home/derek/.ssh/id_rsa (RSA)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=Quota&amp;diff=8509</id>
		<title>Quota</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=Quota&amp;diff=8509"/>
		<updated>2019-08-08T21:41:06Z</updated>

		<summary type="html">&lt;p&gt;Meganst: Per DOCS-839, added nfshomes to the list of fluidfs mounted home directories. Moved &amp;#039;Tree Quotas&amp;#039; to the bottom and updated phrasing accordingly.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==RPC Quotas==&lt;br /&gt;
File systems that support RPC quotad quotas are reported to the user by the &#039;&#039;&#039;&amp;lt;tt&amp;gt;quota&amp;lt;/tt&amp;gt;&#039;&#039;&#039; command.  Home directories that are mounted from our Dell FluidFS NAS will support these kinds of quotas (/cliphomes, /cfarhomes, /cbcbhomes, /nfshomes).&lt;br /&gt;
&lt;br /&gt;
To find out what your current quota is, first run &#039;&#039;&#039;&amp;lt;tt&amp;gt;df .&amp;lt;/tt&amp;gt;&#039;&#039;&#039; to find out what file system you are currently mounted from (in this example it is  &amp;lt;tt&amp;gt;fluidfs:/rama_cfarhomes/derek&amp;lt;/tt&amp;gt;). &#039;&#039;&#039;Please note that the Use% here is for the entire file system and not your user-specific home directory.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# df .&lt;br /&gt;
Filesystem           1K-blocks      Used Available Use% Mounted on&lt;br /&gt;
fluidfs:/rama_cfarhomes/derek&lt;br /&gt;
                     1073741824 759351008 314390816  71% /cfarhomes/derek&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then run &#039;&#039;&#039;&amp;lt;tt&amp;gt;quota&amp;lt;/tt&amp;gt;&#039;&#039;&#039; and that line will list your quota information for that file system.  If you see errors such as &amp;quot;Error while getting quota from ...&amp;quot; you may safely ignore these as some of our file systems such as Gluster do not report quotas correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ quota&lt;br /&gt;
Disk quotas for user derek (uid 2174): &lt;br /&gt;
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace&lt;br /&gt;
fluidfs:/rama_cfarhomes/derek&lt;br /&gt;
                 337560       0 10240000               0       0       0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have hit your RPC quota and haven&#039;t realized it, you may see some strange issues. For example, you will not be able to write-out files (although &#039;touch&#039; and file concatenation will succeed). Some applications such as vi will throw &amp;quot;FSync&amp;quot; errors. Similarly, commands such as wget will appear to succeed but your files will be zero-length.&lt;br /&gt;
&lt;br /&gt;
==Tree Quotas==&lt;br /&gt;
An alternate style of quota management is done through tree quotas that show up in how much space is available in the file system by using the &#039;&#039;&#039;&amp;lt;tt&amp;gt;df&amp;lt;/tt&amp;gt;&#039;&#039;&#039; command to inspect either the current path (no arguments given) or a given path.&lt;br /&gt;
&lt;br /&gt;
For example to show my /nfshomes/derektest home directory quota i can just use &#039;&#039;&#039;&amp;lt;tt&amp;gt;df ~&amp;lt;/tt&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ df ~&lt;br /&gt;
Filesystem           1K-blocks      Used Available Use% Mounted on&lt;br /&gt;
umiacsfs02:/nfshomes/derektest&lt;br /&gt;
                       1024000     49984    974016   5% /nfshomes/derektest&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=PrinterQueueNaming&amp;diff=8295</id>
		<title>PrinterQueueNaming</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=PrinterQueueNaming&amp;diff=8295"/>
		<updated>2019-04-10T15:51:20Z</updated>

		<summary type="html">&lt;p&gt;Meganst: /* Printer Queues */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Printer Queues==&lt;br /&gt;
&lt;br /&gt;
UMIACS uses a centralized print server to manage all of the printers in the Institute.  See [[Printing]] for more details specific to your OS.  We have developed a naming scheme for our printer queues based on the colors the printer can produce, the type of queue, the building number, and the room number.&lt;br /&gt;
&lt;br /&gt;
The naming scheme is as follows:&lt;br /&gt;
&lt;br /&gt;
* All color printers begin with a &amp;quot;c&amp;quot;.  Black &amp;amp; white is the default so nothing extra is needed.&lt;br /&gt;
* Then is either &amp;quot;ps&amp;quot; for a postscript queue or &amp;quot;pcl&amp;quot; for a PCL queue.  Postscript and PCL are types of printer drivers.  If you are unsure what this means, use &amp;quot;ps&amp;quot; for postscript.&lt;br /&gt;
* Then add the building number. E.g. add &amp;quot;432&amp;quot; for IRB.&lt;br /&gt;
* Add a dash (&amp;quot;-&amp;quot;).&lt;br /&gt;
* Then add the room number. E.g. If the printer is in room 3108, add &amp;quot;3108&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Printerqueueformat.JPG|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some examples:&lt;br /&gt;
&lt;br /&gt;
* ps432-3108 is a black &amp;amp; white printer in Iribe 3108.&lt;br /&gt;
* cps296-3120h is a color printer in BSB.&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=PrinterQueueNaming&amp;diff=8294</id>
		<title>PrinterQueueNaming</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=PrinterQueueNaming&amp;diff=8294"/>
		<updated>2019-04-10T15:50:01Z</updated>

		<summary type="html">&lt;p&gt;Meganst: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Printer Queues==&lt;br /&gt;
&lt;br /&gt;
UMIACS uses a centralized print server to manage all of the printers in the Institute.  See [[Printing]] for more details specific to your OS.  We have developed a naming scheme for our printer queues based on the colors the printer can produce, the type of queue, the building number, and the room number.&lt;br /&gt;
&lt;br /&gt;
The naming scheme is as follows:&lt;br /&gt;
&lt;br /&gt;
* All color printers begin with a &amp;quot;c&amp;quot;.  Black &amp;amp; white is the default so nothing extra is needed.&lt;br /&gt;
* Then is either &amp;quot;ps&amp;quot; for a postscript queue or &amp;quot;pcl&amp;quot; for a PCL queue.  Postscript and PCL are types of printer drivers.  If you are unsure what this means, use &amp;quot;ps&amp;quot; for postscript.&lt;br /&gt;
* Then add the building number. E.g. add &amp;quot;432&amp;quot; for IRB.&lt;br /&gt;
* Add a dash (&amp;quot;-&amp;quot;).&lt;br /&gt;
* Then add the room number. E.g. If the printer is in room 3108, add &amp;quot;3108&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Printerqueueformat.JPG|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some examples:&lt;br /&gt;
&lt;br /&gt;
* cps3142 is a color printer in AV Williams 3142.&lt;br /&gt;
* ps432-3108 is a black &amp;amp; white printer in Iribe 3108.&lt;br /&gt;
* cps296-3120h is a color printer in BSB.&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Printerqueueformat.JPG&amp;diff=8293</id>
		<title>File:Printerqueueformat.JPG</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Printerqueueformat.JPG&amp;diff=8293"/>
		<updated>2019-04-10T15:45:32Z</updated>

		<summary type="html">&lt;p&gt;Meganst: Printer queue format updated for Iribe.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Printer queue format updated for Iribe.&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=WindowsPrintingUMIACS&amp;diff=8191</id>
		<title>WindowsPrintingUMIACS</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=WindowsPrintingUMIACS&amp;diff=8191"/>
		<updated>2019-03-21T17:36:43Z</updated>

		<summary type="html">&lt;p&gt;Meganst: Fixed a formatting issue in the PIN-Protected job subsection.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
This will guide you through the process of installing and using the printers available within UMIACS.&lt;br /&gt;
&lt;br /&gt;
==Printing Outside of UMIACS / Laptop Printing==&lt;br /&gt;
&lt;br /&gt;
If you are off the UMIACS network, you must first connect to the [[VPN]] on Windows. After you are connected, follow the instructions for adding a printer queue below. Please note that you must be on the VPN whenever you print.&lt;br /&gt;
&lt;br /&gt;
==Pre-Installation Knowledge on Printing at UMIACS==&lt;br /&gt;
&lt;br /&gt;
[[PrinterQueueNaming| Printer Queue Naming]]&lt;br /&gt;
&lt;br /&gt;
==Installation of printer queue==&lt;br /&gt;
&lt;br /&gt;
Please note that this applies to machines on any UMIACS network. This includes all proxy networks, the vast majority of machines in the labs, and machines connected to the UMIACS VPN but not the wireless network alone. &lt;br /&gt;
&lt;br /&gt;
To add printer queues:&lt;br /&gt;
&lt;br /&gt;
Go to start, click and type in “\\printers.ad.umiacs.umd.edu” in the search box. &lt;br /&gt;
&lt;br /&gt;
[[Image:Win7doc1.jpg]] [[Image:Win7doc2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You may be prompted with a box for authentication.  Make sure to prefix &#039;UMIACS\&#039; to your username.  (For example, if your username was &#039;johndoe&#039; you would enter &#039;UMIACS\johndoe&#039; in the username box)&lt;br /&gt;
&lt;br /&gt;
[[File:UMIACSprinting.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A list of printer queues will appear. Select your desired printer by double clicking on the queue. Once you have double clicked on the queue a box will immediately pop up to show you the status of the printer driver installation. Once that is complete you can start using the printer.&lt;br /&gt;
&lt;br /&gt;
[[Image:Win7doc3.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Removing a printer queue==&lt;br /&gt;
&lt;br /&gt;
To remove a printer queue, open the start menu and click on control panel. Next, click on &amp;quot;View devices and printers.&amp;quot; To remove the queue, right click on the printer and select &amp;quot;remove device.&amp;quot; If you wish to add the printer back, follow the instructions above.&lt;br /&gt;
&lt;br /&gt;
[[Image:Win7printremove.jpg]]&lt;br /&gt;
==Duplex Printing==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Many printers in UMIACS support duplex (2 sided) printing. To make the duplex printing default, first make sure the appropriate printer queue is installed via the directions above. Afterwards, go to start, then “Devices and Printers.”&lt;br /&gt;
Once the printer has been installed proceed by right clicking on the queue then selecting “Printing preferences.”&lt;br /&gt;
&lt;br /&gt;
[[Image:Win7doc4.jpg]]&lt;br /&gt;
&lt;br /&gt;
After a few seconds the following menu will come up. Make sure you are on the “Printing Shortcuts” tab and select the “Eco-Print (Two-sided Printing)” option then click on okay. This modification will allow you to print 2-sided whenever you choose to use this printer.&lt;br /&gt;
&lt;br /&gt;
[[Image:Win7doc5.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Store and Print PIN-Protected Jobs==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create a stored job&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; From the software program, select the &#039;&#039;&#039;Print&#039;&#039;&#039; option.&lt;br /&gt;
&amp;lt;li&amp;gt; Select the printer from the list of printers, and then select &#039;&#039;&#039;Properties&#039;&#039;&#039; or &#039;&#039;&#039;Preferences&#039;&#039;&#039; (name varies by software program)&lt;br /&gt;
&amp;lt;li&amp;gt; Click the &#039;&#039;&#039;Job Storage&#039;&#039;&#039; tab.&lt;br /&gt;
&amp;lt;li&amp;gt; Under &#039;&#039;&#039;Job Storage Mode&#039;&#039;&#039;, select &#039;&#039;&#039;Personal Job&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
[[Image:Pinprint_1_mode.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; In the drop-down menu under &#039;&#039;&#039;Make Job Private/Secure&#039;&#039;&#039;, select &#039;&#039;&#039;PIN to print&#039;&#039;&#039;, and type in a 4-digit number.&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
[[Image:Pinprint_2_pin.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
: Note: You will need to provide the entered PIN (4-digit number) at the printer&#039;s control panel.&lt;br /&gt;
&amp;lt;li&amp;gt; Click the &#039;&#039;&#039;OK&#039;&#039;&#039; button to close the Document Properties/Preferences dialog box. In the Print dialog box, click &#039;&#039;&#039;Print&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Print a stored job&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After you have created a stored job using the instructions above, follow these steps to print from the printer&#039;s control panel.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; From the Home screen on the printer control panel, select &#039;&#039;&#039;Print&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;&#039;&#039;Print from Job Storage&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
[[Image:Pinprint_3_printfrom.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;&#039;&#039;Choose&#039;&#039;&#039;, and then select the name of the folder where the job is stored.&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
[[Image:Pinprint_4_folder.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Select the name of the job, enter your chosen PIN (4-digit number), and click &#039;&#039;&#039;Ok&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
[[Image:Pinprint_5_pin.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;&#039;&#039;Print&#039;&#039;&#039; to print the job.&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
[[Image:Pinprint_6_print.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
: Note: The print job is deleted from memory after it prints.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=WindowsPrintingUMIACS&amp;diff=8190</id>
		<title>WindowsPrintingUMIACS</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=WindowsPrintingUMIACS&amp;diff=8190"/>
		<updated>2019-03-21T17:30:06Z</updated>

		<summary type="html">&lt;p&gt;Meganst: Added instructions to create a PIN-projected print job.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
&lt;br /&gt;
This will guide you through the process of installing and using the printers available within UMIACS.&lt;br /&gt;
&lt;br /&gt;
==Printing Outside of UMIACS / Laptop Printing==&lt;br /&gt;
&lt;br /&gt;
If you are off the UMIACS network, you must first connect to the [[VPN]] on Windows. After you are connected, follow the instructions for adding a printer queue below. Please note that you must be on the VPN whenever you print.&lt;br /&gt;
&lt;br /&gt;
==Pre-Installation Knowledge on Printing at UMIACS==&lt;br /&gt;
&lt;br /&gt;
[[PrinterQueueNaming| Printer Queue Naming]]&lt;br /&gt;
&lt;br /&gt;
==Installation of printer queue==&lt;br /&gt;
&lt;br /&gt;
Please note that this applies to machines on any UMIACS network. This includes all proxy networks, the vast majority of machines in the labs, and machines connected to the UMIACS VPN but not the wireless network alone. &lt;br /&gt;
&lt;br /&gt;
To add printer queues:&lt;br /&gt;
&lt;br /&gt;
Go to start, click and type in “\\printers.ad.umiacs.umd.edu” in the search box. &lt;br /&gt;
&lt;br /&gt;
[[Image:Win7doc1.jpg]] [[Image:Win7doc2.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You may be prompted with a box for authentication.  Make sure to prefix &#039;UMIACS\&#039; to your username.  (For example, if your username was &#039;johndoe&#039; you would enter &#039;UMIACS\johndoe&#039; in the username box)&lt;br /&gt;
&lt;br /&gt;
[[File:UMIACSprinting.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A list of printer queues will appear. Select your desired printer by double clicking on the queue. Once you have double clicked on the queue a box will immediately pop up to show you the status of the printer driver installation. Once that is complete you can start using the printer.&lt;br /&gt;
&lt;br /&gt;
[[Image:Win7doc3.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Removing a printer queue==&lt;br /&gt;
&lt;br /&gt;
To remove a printer queue, open the start menu and click on control panel. Next, click on &amp;quot;View devices and printers.&amp;quot; To remove the queue, right click on the printer and select &amp;quot;remove device.&amp;quot; If you wish to add the printer back, follow the instructions above.&lt;br /&gt;
&lt;br /&gt;
[[Image:Win7printremove.jpg]]&lt;br /&gt;
==Duplex Printing==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Many printers in UMIACS support duplex (2 sided) printing. To make the duplex printing default, first make sure the appropriate printer queue is installed via the directions above. Afterwards, go to start, then “Devices and Printers.”&lt;br /&gt;
Once the printer has been installed proceed by right clicking on the queue then selecting “Printing preferences.”&lt;br /&gt;
&lt;br /&gt;
[[Image:Win7doc4.jpg]]&lt;br /&gt;
&lt;br /&gt;
After a few seconds the following menu will come up. Make sure you are on the “Printing Shortcuts” tab and select the “Eco-Print (Two-sided Printing)” option then click on okay. This modification will allow you to print 2-sided whenever you choose to use this printer.&lt;br /&gt;
&lt;br /&gt;
[[Image:Win7doc5.jpg]]&lt;br /&gt;
&lt;br /&gt;
==Store and Print PIN-Protected Jobs==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create a stored job&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; From the software program, select the &#039;&#039;&#039;Print&#039;&#039;&#039; option.&lt;br /&gt;
&amp;lt;li&amp;gt; Select the printer from the list of printers, and then select &#039;&#039;&#039;Properties&#039;&#039;&#039; or &#039;&#039;&#039;Preferences&#039;&#039;&#039; (name varies by software program)&lt;br /&gt;
&amp;lt;li&amp;gt; Click the &#039;&#039;&#039;Job Storage&#039;&#039;&#039; tab.&lt;br /&gt;
&amp;lt;li&amp;gt; Under &#039;&#039;&#039;Job Storage Mode&#039;&#039;&#039;, select &#039;&#039;&#039;Personal Job&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
[[Image:Pinprint_1_mode.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; In the drop-down menu under &#039;&#039;&#039;Make Job Private/Secure&#039;&#039;&#039;, select &#039;&#039;&#039;PIN to print&#039;&#039;&#039;, and type in a 4-digit number.&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
[[Image:Pinprint_2_pin.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
: Note: You will need to provide the entered PIN (4-digit number) at the printer&#039;s control panel.&lt;br /&gt;
&amp;lt;li&amp;gt; Click the &#039;&#039;&#039;OK&#039;&#039;&#039; button to close the Document Properties/Preferences dialog box. In the Print dialog box, click &#039;&#039;&#039;Print&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Print a stored job&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
After you have created a stored job using the instructions above, follow these steps to print from the printer&#039;s control panel.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; From the Home screen on the printer control panel, select &#039;&#039;&#039;Print&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;li&amp;gt; Select &#039;&#039;&#039;Print from Job Storage&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
[[Image:Pinprint_3_printfrom.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Select Choose, and then select the name of the folder where the job is stored.&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
[[Image:Pinprint_4_folder.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Select the name of the job, enter your chosen PIN (4-digit number), and click &#039;&#039;&#039;Ok&#039;&#039;&#039;.&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
[[Image:Pinprint_5_pin.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Select Print to print the job.&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
[[Image:Pinprint_6_print.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
: Note: The print job is deleted from memory after it prints.&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Pinprint_6_print.jpg&amp;diff=8189</id>
		<title>File:Pinprint 6 print.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Pinprint_6_print.jpg&amp;diff=8189"/>
		<updated>2019-03-21T17:27:46Z</updated>

		<summary type="html">&lt;p&gt;Meganst: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Pinprint_5_pin.jpg&amp;diff=8188</id>
		<title>File:Pinprint 5 pin.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Pinprint_5_pin.jpg&amp;diff=8188"/>
		<updated>2019-03-21T17:27:34Z</updated>

		<summary type="html">&lt;p&gt;Meganst: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Pinprint_4_folder.jpg&amp;diff=8187</id>
		<title>File:Pinprint 4 folder.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Pinprint_4_folder.jpg&amp;diff=8187"/>
		<updated>2019-03-21T17:27:21Z</updated>

		<summary type="html">&lt;p&gt;Meganst: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Pinprint_3_printfrom.jpg&amp;diff=8186</id>
		<title>File:Pinprint 3 printfrom.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Pinprint_3_printfrom.jpg&amp;diff=8186"/>
		<updated>2019-03-21T16:47:26Z</updated>

		<summary type="html">&lt;p&gt;Meganst: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Pinprint_2_pin.jpg&amp;diff=8185</id>
		<title>File:Pinprint 2 pin.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Pinprint_2_pin.jpg&amp;diff=8185"/>
		<updated>2019-03-21T16:44:32Z</updated>

		<summary type="html">&lt;p&gt;Meganst: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Pinprint_1_mode.jpg&amp;diff=8184</id>
		<title>File:Pinprint 1 mode.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=File:Pinprint_1_mode.jpg&amp;diff=8184"/>
		<updated>2019-03-21T16:28:30Z</updated>

		<summary type="html">&lt;p&gt;Meganst: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Meganst</name></author>
	</entry>
</feed>