Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How to SSH from Windows Desktop to a linux server - using Powershell

...

To Speed common connections up you can create a config file in .ssh folder in your profile c:\users\<username>\.ssh

which could be something likeand have all your common connection info stored in the following format:


Host <hostname>
    User <username>

...

    IdentityFile ~/.ssh/<me>_rsa
Host 192
e.168.69.112
g.
Host targaryen
    

...

HostName 192.168.1.10
 

...

   User 

...

daenerys
    

...

Port 

...

7654
 

...

   

...

IdentityFile ~/.ssh/

...

targaryen.key

and then you can simply type ssh targaryen to connect. More about how to use config file can be found in https://linuxize.com/post/using-the-ssh-config-file/

To create keys - google search or see section in help : GitLab and SSH

...