Q: Want less passwords? A: Passwordless.

Download Report

Transcript Q: Want less passwords? A: Passwordless.

Q: Passwords?
A: Passwordless.
Some guy
Computing Club, 02/01/2008
ENIGMA: appropriately named.
• We’ve heard what is, now how do we use
it?
• In order to use it, you must sign on to it.
• In order to sign on to it, you must have a
password (everyone in Biostat Dept).
• Email: Jiong Yang ([email protected])
MAC attack
• From Mary (Max) Weselcouch:
Open the Terminal application found in
Applications/Utilities on a Mac
Type
ssh [email protected]
Enter your password when prompted.
To change your password, type passwd, and
then follow the prompts.
SSH / PuTTY
• Either allow you access Enigma, as well
as “biostat” server.
• Google puTTY.exe download.
• Get it.
• Also, grab “puTTYgen.exe”
• Save each to desktop.
QUICK START: Double Click
PuTTY icon
• Hostname:
– For HTML pages: [email protected]
– For ENIGMA: [email protected]
• A black terminal appears, asks for your host
name. Should be the same as your “identity” in
your jhsph.edu email address:
[email protected] - enter that and hit return.
• Then prompted for password. Type it, hit return.
• You’re in!
Rigmarole be gone!
• Let’s set up passwordless entry onto
ENIGMA.
• Double click puTTYgen.exe.
• Click “generate” button.
• Wave your mouse around region until
green bar fills up (seriously…it is collecting
your mouse position as a randomly
generated sequence).
Continued from last slide
•
•
•
•
Enter passphrase, and confirm.
Click save private key.
KEEP YOUR puTTYgen WINDOW OPEN!
Now we have a generated key. We need
to put it into our
/home/bst/student/identity/.ssh folder
• But first, WINSCP. This will allow us to
transfer files very easily.
WINSCP.exe
• Google for it.
• Download, and install. Then double click
icon and enter your info and hit Login:
See the transfers.
• On the left, your computer. On the right,
What you logged into.
Back to passwordless…
• Go to the puTTYgen window that you kept
open.
• Highlight and copy the contents of big
field:
Put the key into ENIGMA
• In your WINSCP window, find on the right
hand side your .ssh folder.
• Get in the folder and double click
“authorized_keys”
• Paste in the stuff from puTTYgen.
• Click save icon in toolbar, and close.
• Close WINSCP, puTTYgen, and puTTY.
The test.
• Open putty. Go to “ssh – auth” on the
sidebar.
Tell putty where key is.
• Hit browse or put in file path. DO NOT hit
Open.
Need to save session.
• Go to “Session” on sidebar (very top).
• Enter your info, and name the Session in
“Saved Sessions”. I named mine
“bruceComputingCLUB”. Hit Save.
Hallelujah, You’re SAVED.
• Now the session with the passwordless
key is saved.
• Hit Open. Will ask for pass phrase if you
made one when you used puTTYgen.
Extra level of security.
Keyboard shortcuts
• Next time you click on putty.exe, you can
load the saved session you just built.
• OR…
• Be cool.
• Keyboard shortcuts. Right click on
putty.exe icon. Click create shortcut.
• Name the shortcut “puTTYENIGMA”
…continued
• Right click “puTTYENIGMA”
• Scroll to the end of “target” field and put
–
- load “BruceComputingCLUB”
– Where “BruceComputingCLUB” is what you
named your saved session. DON’T CLOSE
…continued
• Move cursor to Keyboard Shortcut.
• Then hold down ctrl, alt, p. “ctrl + alt + P”
should appear.
• Now hit ok.
The real test.
• Casually say, “What’s up?” while looking at
someone logging into ENIGMA the old
way while simultaneously hitting “alt + ctrl
+ p” and nonchalantly go on to the cluster.
• Type R. Hit enter.
• To quit R: q(“no”)
• To quit terminal: exit
WINSCP
• Can make WINSCP passwordless, too.
• Put in private key file (leave password
blank):
• Click save, name it “something”.
WINSCP
•
•
•
•
•
•
•
Can implement keyboard shortcut as well.
Right click winscp icon / make shortcut
Right click shortcut / properties
End of target field, -load “something”
Move cursor to shortcut key field
Push the short cut (ctrl+alt + [blank] )
Save. Done.