[personal profile] codedot
SSH configuration allows a user to introduce aliases for user@host names both for ssh(1) and scp(1). In order to do that, the ~/.ssh/config file can be appended by the lines similar to the following:
Host js
HostName jsinc.com
User john

Host tom
HostName tommy.supergnu.org
User tommy
This way, to copy a file /tmp/xml to John's machine as John himself, and then log in Tommy's host using the name `some1' (not the default user name `tommy'), one could just type `scp /tmp/xml js:/tmp', then `ssh some1@tom'.

Profile

Anton Salikhmetov

November 2018

S M T W T F S
    123
45678 910
11121314151617
18192021222324
252627282930 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 13th, 2025 06:57 pm
Powered by Dreamwidth Studios