how to work remotely - vanderbilt...

36
How to work remotely Jeremy Stephens, BS Computer Systems Analyst III Department of Biostatistics Vanderbilt University Medical Center April 1, 2015

Upload: others

Post on 27-Jun-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

How to work remotely

Jeremy Stephens, BSComputer Systems Analyst III

Department of BiostatisticsVanderbilt University Medical Center

April 1, 2015

Page 2: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Needs

● Communication (E-mail, instant messaging)

● Files (Documents, data, scripts)

● Programs

● Private services

Page 3: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

E-mail

● Vanderbilt web mail

● Third-party clients

– Thunderbird

– Outlook

– iPhone/Android*

Page 4: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Instant messaging

● Windows or Linux: Pidgin

● Mac: Adium

Page 5: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Files

● Third party services

– Dropbox

– Google Drive

– iCloud

– Vanderbilt Box

● Do-it-yourself

– SparkleShare: http://sparkleshare.org

– Samba, rsync, sshfs, etc.

– Windows and Mac: sharing folders

Page 6: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

HIPAA Concerns

● Most third-party services are NOT compliant*

● Vanderbilt's Box agreement includes BAA

– Permitted:● Sensitive identifiable human subject research data● Student educational records● Protected health information

– Not permitted:● Social security numbers● Student loan information● Payment information

Page 7: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Encryption

● 7-Zip

– Works on Windows, Mac, and Linux

– Can create encrypted zip files

● CipherShed (TrueCrypt* successor)

● GPG

● Encfs

Page 8: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Running Programs

● Install and run locally*

● Run remotely

Page 9: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Remote access

● Remote desktop session

● Secure shell (SSH)

● Requires some internet networking knowledge

Page 10: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Internet Protocol

● Abbreviated as “IP”

● Makes the internet possible

● Set of rules of communication between computers

● Works similarly to the US mail service

Page 11: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Home address

Page 12: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Mail example

Jay Cutler123 Bears LaneChicago, IL 60290

Page 13: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Mail example

Jay Cutler123 Bears LaneChicago, IL 60290

Page 14: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Mail example

Jay Cutler123 Bears LaneChicago, IL 60290

Page 15: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Mail example

Jay Cutler123 Bears LaneChicago, IL 60290

Page 16: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Mail example

Jay Cutler123 Bears LaneChicago, IL 60290

Page 17: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

IP address

● Assigned by an authority (just like your home address)

● Four numbers, 0-255, separated by dots

● Example: 123.456.789.012

● Public IP address: accessible worldwide

● Private IP address: accessible locally only

Page 18: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

IP address example

123.456.789.012

Page 19: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

IP address example

123.456.789.012

Page 20: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

IP address example

123.456.789.012

Page 21: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

IP address example

123.456.789.012

Page 22: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

IP address example

123.456.789.012

Page 23: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Private network

Page 24: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Private network (cont.)

● Special reserved sets of IP addresses

– 10.0.0.0 thru 10.255.255.255 (~17 million)

– 172.16.0.0 thru 172.31.255.255 (~1 million)

– 192.168.0.0 thru 192.168.255.255 (~66 thousand)

● Only accessible from the outside world through an intermediary

Page 25: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Finding your IP address

● Windows and Mac: view network properties

● Linux: run ipconfig from terminal

Page 26: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Using VPN

● Virtual Private Network

● Allows you “virtual” access to a private network

Page 27: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Vanderbilt VPN

● Windows and Mac: Junos Pulse

● Linux: do-it-yourself solutions

Page 28: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Remote desktop session

● Share your desktop session

● Viewable by a remote desktop client

– Remote desktop protocol (RDP)

– Virtual network computing (VNC)

Page 29: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Sharing your Windows desktop

● Built-in remote desktop server (RDP)

– Available for Windows Professional or better

– Enable through control panel

– Connect using a remote desktop client

● Third-party tools (VNC)

Page 30: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Sharing your Mac desktop

● Enable via “Sharing” in system preferences (VNC)

● Connect from Windows and Linux via VNC client (like TightVNC)

Page 31: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Sharing your Linux desktop

● Enable via “Desktop Sharing” (Ubuntu VNC)

● xrdp – Remote desktop server

● Trickier to set up than Windows or Mac

Page 32: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Secure Shell (SSH)

● Terminal-based access

● Powerful

● Cross-platform

– Windows: PuTTY (http://putty.org)

– Installed by default for Mac and Linux

Page 33: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

SSH “VPN”

● Mimic a VPN by hopping between computers

● Connect to a publicly accessible computer

– Ex: ssh data.vanderbilt.edu

● Connect to a computer within a private network from the “jump” computer

– Ex: ssh 10.1.2.3

Page 34: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

Terminal multiplexer

● Open multiple shells through a single SSH session

● tmux and screen

Page 35: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

SSH X Forwarding

● Works best from a Linux machine

● Run a program remotely with a local window

● Example:

– ssh -X 123.456.789.012

Page 36: How to work remotely - Vanderbilt Universitybiostat.mc.vanderbilt.edu/wiki/pub/Main/WorkingRemotely/presentation.pdfHow to work remotely Jeremy Stephens, BS Computer Systems Analyst

A note about firewalls

● Firewalls can block remote connections

● Vanderbilt blocks some incoming traffic from the outside world

● Open ports:

– 22 (SSH)

– 80 (HTTP)

– 443 (HTTPS)

– 37200 thru 37255

● Closed ports: RDP, VNC