SiteID: A website account’s unique identifier within the OTDI Web Hosting system which may (or may not) be reflected in your site’s URL. For example, https://osu.edu is OSU’s primary URL, but osumain is their SiteID.
Open two terminals
On Terminal #1
- SSH into webssh.osu.edu using your Name.# and Password
- Choose the SiteID you wish to copy your files from. (Source)
- As the SiteID user:
- ssh-keygen
- This creates the ~/.ssh subdirectories
- Also creates a private key (Change to use filename =id_rsa)
- Also creates a Public Key (id_rsa.pub)
- Do not use a passphrase on the key
- cat ~/.ssh/id_rsa.pub
- Copy the output
- ssh-keygen
On Terminal #2
- SSH into webssh.osu.edu using your Name.# and Password
- Choose the SiteID you wish to copy your files to. (Target)
- (Not the same as the previous site)
- As the SiteID user:
- ssh-keygen
- This creates the ~/.ssh subdirectories
- Also creates a private key (Change to use filename =id_rsa)
- Also creates a Public Key (id_rsa.pub)
- Do not use a passphrase on the key
- touch ~/.ssh/authorized_keys
- chmod 600 ~/.ssh/authorized_keys
- vi ~/.ssh/authorized_keys
- Press ‘i’ to enter ‘Insert’ mode in VI
- Paste the output of Item #4 on the 1st line
- Write & Quit the file (:wq)
- ssh-keygen
Back on Terminal #1
- Test the Key
- ssh SiteID#2@webssh.osu.edu
- Or even better: ssh SiteID#2@localhost
- ssh SiteID#2@webssh.osu.edu
- If both logins succeed without the need for a password, you can now SCP your files directly from one SiteID to another, without your files ever leaving our AWS Private Cloud. It’s a fast way to copy your files from -Dev to -Test.