-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #548 from argonne-lcf/saforem2-patch-1
Update scp.md
- Loading branch information
Showing
1 changed file
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,12 +54,8 @@ With the use of `ProxyJump` below, entering the MobilePass+ or Cryptocard | |
passcode twice will be needed (once for bastion and once for the other | ||
resource). | ||
A simple example shows the `#!bash .ssh/config` entries for Polaris and the | ||
`#!bash scp` command for transferring from Polaris: | ||
```bash | ||
# on Polaris | ||
$ cat ~/.ssh/config | ||
username@aurora-uan-0009:~> cat .ssh/config | ||
Host bastion.alcf.anl.gov | ||
User username | ||
|
@@ -70,9 +66,17 @@ Host polaris.alcf.anl.gov | |
``` | ||
```bash | ||
src="/eagle/<project>/<username>/test.txt" | ||
dst="$(pwd)" | ||
scp "${src}" "${dst}" | ||
username@aurora-uan-0009:~> scp [email protected]:/eagle/catalyst/proj-shared/username/test.txt ./ | ||
--------------------------------------------------------------------------- | ||
Notice to Users | ||
... | ||
[Password: | ||
--------------------------------------------------------------------------- | ||
Notice to Users | ||
... | ||
[Password: | ||
username@aurora-uan-0009:~> cat test.txt | ||
from_polaris eagle | ||
``` | ||
## `#!bash scp`: Examples[^examples] | ||
|