computing-systems-212 / Unix Basics Demo / task1-ssh / task1.txt
task1.txt
Raw
My SSH client of choice is iTerm. It is a versatile and supported platform for this work.
----------------------------------------------------------------------------------

Prior to starting task 1, I chose to first clone (using SSH) the demo-1 repository in my desired location.
valentinojaber➜~/Documents/CPEN212» git clone git@github.com:UBC-CPEN212-2022W2/demo-1-valentino-jaber.git
Cloning into 'demo-1-valentino-jaber'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 2 (delta 0), pack-reused 0
Receiving objects: 100% (3/3), 5.18 KiB | 1.73 MiB/s, done.
----------------------------------------------------------------------------------

I then entered `ssh` directly into my terminal to ensure ssh is correctly installed
valentinojaber➜~/Documents/CPEN212» ssh                      [17:11:10]
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
           [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
           [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
           [-i identity_file] [-J [user@]host[:port]] [-L address]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
           [-w local_tun[:remote_tun]] destination [command [argument ...]]
----------------------------------------------------------------------------------

I then connected to `ssh.ece.ubc.ca` using my account `danial27`
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 5.4.0-125-generic x86_64)

51 updates can be applied immediately.
To see these additional updates run: apt list --upgradable

New release '22.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

1 updates could not be installed automatically. For more details,
see /var/log/unattended-upgrades/unattended-upgrades.log
*** System restart required ***

UBC Electrical and Computer Engineering <it@ece.ubc.ca>

This system is for use by authorized users only, and subject to UBC Policy SC14.

Individuals using this computer system without authority, or in excess of their
authority, are subject to having all their activities on this system monitored
and recorded by system personnel.

In the course of monitoring individuals improperly using this system, or in the
course of system maintenance, the activities of authorized users may also be
monitored.

Anyone using this system expressly consents to such monitoring and is advised
that, if such monitoring reveals possible evidence of criminal activity, system
administrators may provide the evidence of such monitoring to law enforcement
officials.
----------------------------------------------------------------------------------

Copy a file from your computer to `ssh.ece.ubc.ca`.
valentinojaber➜Documents/CPEN212/demo-1-valentino-jaber(demotask1✗)» scp sample.txt danial27@ssh.ece.ubc.ca:~/cpen212
sample.txt                                                             100%   71     3.5KB/s   00:00
----------------------------------------------------------------------------------

Copy a file from from `ssh.ece.ubc.ca` to your computer.
valentinojaber➜Documents/CPEN212/demo-1-valentino-jaber(demotask1✗)» scp danial27@ssh.ece.ubc.ca:~/cpen21
2/sample.txt ../
sample.txt                                                             100%   71     6.9KB/s   00:00
----------------------------------------------------------------------------------

Copy a directory and all the files it contains from your computer to `ssh.ece.ubc.ca`.
valentinojaber➜Documents/CPEN212/demo-1-valentino-jaber(demotask1✗)» scp -r sampledir danial27@ssh.ece.ub
c.ca:~/cpen212
file1.txt                                                              100%   71     8.1KB/s   00:00
wow.txt                                                                100%   71    14.5KB/s   00:00
hello.txt                                                              100%   71    14.9KB/s   00:00
----------------------------------------------------------------------------------

Copy a directory and all the files it contains from from `ssh.ece.ubc.ca` to your computer.
valentinojaber➜Documents/CPEN212/demo-1-valentino-jaber(demotask1✗)» scp -r danial27@ssh.ece.ubc.ca:~/cpe
n212/sampledir ../
file1.txt                                                              100%   71     8.0KB/s   00:00
wow.txt                                                                100%   71     9.1KB/s   00:00
hello.txt                                                              100%   71     5.5KB/s   00:00
----------------------------------------------------------------------------------