How do I keep SSH connection alive on Windows 10?
In C:\Users\yourusername\.ssh make a new file named config, and add the lines below: Host * ServerAliveInterval 40
In C:\Users\yourusername\.ssh make a new file named config, and add the lines below: Host * ServerAliveInterval 40
All credit goes to PetSerAl, this had to be posted as an aswer: (dir 2>&1 *`|echo CMD);&<# rem #>echo PowerShell Within Win32-OpenSSH this command also works, and outputs CMD. NB : Win32-OpenSSH seems a bit limited, cd is not recognized on my system.
Generally, in Windows machine, the SSH config file stored in the following location: /c/Users/PC_USER_NAME/.ssh/ Just follow the steps in below (if you’re using the Git Bash): Go to the .ssh directory /c/Users/PC_USER_NAME/.ssh/, click right mouse button and choose “Git Bash Here” Create a file named “config” with the following command: touch config Now open the … Read more
I got this working.. believe it or not by adding a single LF at the end of your private key file. E.G —–BEGIN OPENSSH PRIVATE KEY—– KEY —–END OPENSSH PRIVATE KEY—– Without the LF the private key worked fine with putty, secureCRT, WinSCP, GIT etc… but Windows (which is used by VisualCode) Kept giving me … Read more
Update 2019-03-20: https://www.chiark.greenend.org.uk/~sgtatham/putty/releases/0.71.html supports these keys At the time of writing this, the puttygen snapshot from https://www.chiark.greenend.org.uk/~sgtatham/putty/snapshot.html seems to support these keys where 0.70 did not. It’s not explicitly mentioned in the changelog. I tested Development snapshot 2019-01-17.53747ad
If you want to “jump a host”, then using “local proxy command” is an overkill. Recent versions of PuTTY have this build-in. Go to Connection > Proxy, and in “Proxy type”, select “SSH to proxy and use port forwarding”. Then specify the details of the intermediate server below (like Hostname, Port, Username, Password [or load … Read more
You can use icacls in Windows instead of chmod to adjust file permission. To give the current user read permission and remove everything else (Which will allow openssh to work), this works nicely: Command Prompt: icacls .\private.key /inheritance:r icacls .\private.key /grant:r “%username%”:”(R)” In PowerShell, you can get icacls to work by wrapping the command in … Read more
No, it is not possible. The configuration options are described in the manual page for ssh_config and there is no such option as Pass. There are no patches (at least I didn’t see any during the years yet), because it is very insecure to store passwords in plain text. Using some obfuscated method will not … Read more
No tweaks needed. Just make TortoiseGit point to the same ssh client used by git itself, see the screenshot: This should be C:\Program Files\Git\usr\bin\ssh.exe in latest version of Git as mentioned by Aleksey Kontsevich in the comments.
Install PuttyTools apt-get install putty-tools Generate a pem file form the ppk puttygen server.ppk -O private-openssh -o server.pem The file server.pem file will be saved on same location