ysl2 / .dotfiles

My dotfiles
1 stars 0 forks source link

add ssh host alias, and ssh-copy-id on windows #22

Open ysl2 opened 8 months ago

ysl2 commented 8 months ago
# $HOME\.pwshrc.localhost.ps1

# NOTE: The function name must starts with a letter.
function s53 {
    ssh username@localhost -p 22
}

# You can use it in powershell by `s53`
# NOTE: The double quotes.
ssh-copy-id "username@localhost -p 22"