<PREV> <INDEX> <NEXT>

Tools for Programming and Cluster Management

Common tools we cannot ignore:


Remote access using ssh
    ssh user@hostname

local@play:~$
ssh remote@play.math.cmu.edu
remote@play.math.cmu.edu's password:
Last login: Thu Jan 12 10:45:12 2023 from 128.2.117.84
remote@play:~$
Passwordless access using ssh:
local@play:~$
cd .ssh
local@play:~/.ssh$
ls
known_hosts
local@play:~/.ssh$
ssh-keygen -q -t rsa -C "me@play"
Enter file in which to save the key (/home/local/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
local@play:~/.ssh$
ls
id_rsa id_rsa.pub known_hosts
local@play:~/.ssh$
scp id_rsa.pub remote@play.math.cmu.edu:
remote@play.math.cmu.edu's password:
id_rsa.pub 100% 561 4.5MB/s 00:00
local@play:~/.ssh$

remote@play:~$
cd .ssh
remote@play:~/.ssh$
ls
known_hosts
remote@play:~/.ssh$
cat ~/id_rsa.pub >> authorized_keys
remote@play:~/.ssh$
chmod go-rw authorized_keys
remote@play:~/.ssh$
ls -l
-rw------- 1 remote remote 561 Jan 12 11:00 authorized_keys
-rw-r--r-- 1 remote remote 142 Jan 12 10:59 known_hosts
remote@play:~/.ssh$
cat authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDKuxpcIKbr0Drxs0zObK4OinK7IjD8mNk= me@play
remote@play:~/.ssh$

local@play:~$
ssh remote@play.math.cmu.edu
Last login: Thu Jan 12 10:59:05 2023 from 128.2.32.145
remote@play:~$

Cluster structure:
cluster



<PREV> <INDEX> <NEXT>