Skip to content

wups0713/WindowsConfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

font

MicrosoftYaHeiMono-CP950

ssh

Connect to remote with key pair.

  1. Copy .ssh folder to %USERPROFILE%.

    CMD> xcopy /E /Y /I .ssh %USERPROFILE%\.ssh
  2. Create key pair.

    CMD> ssh-keygen -f %USERPROFILE%\.ssh\keys\<user>@<remote>
  3. Copy public key to remote.

    CMD> scp %USERPROFILE%\.ssh\keys\<user>@<remote>.pub <user>@<remote>:~/key.pub
    CMD> ssh <user>@<remote> -C "mkdir -p ~/.ssh; cat ~/key.pub >> ~/.ssh/authorized_keys; rm ~/key.pub"
    CMD> del %USERPROFILE%\.ssh\keys\<user>@<remote>.pub

About

My Windows configuration.

Resources

Stars

Watchers

Forks