To run your R code from the command line
- SSH into
lightfoot.vbi.vt.edu
- SSH into the RStudio container:
ssh 172.16.238.10
cd
into wherever you need to run your script- run it:
Rscript my_script.R
If you get some scary warning about a middleman attacker or something, it's because you've connected to the rstudio server before, and it saved that exact version. Since our servers are constantly being rebuilt, chances are it will not be the same from the last time you did this
To fix:
- open up the known_hosts file:
nano ~/.ssh/known_hosts
- delete the line in the file that has the rstudio IP address (e.g.,
172.16.238.10
) - save the known hosts file, and exit
- try to
ssh
again