owned this note
owned this note
Published
Linked with GitHub
# lesson dev: workshop 3, sshing into remote computers
## up front thoughts:
* IMPORTANT QUESTION: what ssh client?
* mobaxterm?
* does latest version of Windows have ssh?
* Is there a web based portal or plugin?
* as a note:
* we can provide ssh keys up front
* and only later tell them how to generate one
* topics/learning objectives
* different clients discussion
* specifying a computer to log into
* specifying a username to connect to
* @ vs -l
* local vs remote
* passwords vs keys
* do we teach how to generate keys?
* maybe show how to generate on farm
* how public/private keys work
* troubleshooting
* -v and logging, what connections look like
* incorrect password vs incorrect key
* key-only vs password-only
* network connectivity
* can we set up some examples somewhere for this? remote aws (password), remote aws (key), remote farm (ssh key)
* compare/contrast with binder, jupyter, rstudio, and web interfaces more generally; http vs ssh
* systems administration, privileges, etc.
* home directory, common locations on systems
* scratch, tmp, shared directories
* prerequisites: unix shell
* a basic understanding of executing commands remotely
* local vs remote computer concepts
* assessments
* maybe some questions based on the unix shell
* some questions about where things execute, using what memory/disk?
---
## more detailed thoughts
### setup on our end
- make sure ssh keys work
- make sure passwords work
- send passwords to people
- provide ssh keys to people ...somehow
- test mobaxterm, do screenshots
### set up on their end
- ask people to install mobaxterm; provide screenshots
- look at Mac options
questions:
- ...
### introduction
talk about connecting into remote computer, & concepts:
network connections
connecting over the internet
network "sniffing" - coffeeshops and more nefarious things
encryption and how encryption gets set up
passwords and identity proof
ssh and private/public key pairs
### ssh
Logging in with password on Mac, Windows
logging in with ssh key on Mac, Windows
logging into farm with farm and ssh -v
showing common errors - wrong hostname, network blocked
### demo of account
loading day 1 and day 2 data onto your account with git clone
redoing some of the stuff we did in day 1 and day 2
### path and file manipulations revisit (day 1)
### editing text files revisit (day 2)
note, can't use csvtk (but can use all other commands) - why?
many things come standard on UNIX, but not everything
it's hard to tell you what :)
on friday we'll show you how to install software generically
### multiple connections
show connecting to same system from multiple windows (and potentially to different systems)
different shell, same file system
persistence
Persistent files, account configuration
talk about shared file systems on different computers?
### multiuser workstations
superuser vs regular user; laptop/cloud vs hpc
users and usernames
permissions
Group files / shared files
### sharing computers responsibly
Top
Processes and ps
### loading files with wget, etc.
### generating keys (once you're on farm)
### shell variables?
### for loops for working with files (could be lesson 4)