ssh
How to pass password automatically for rsync SSH command?
Use “sshpass” non-interactive ssh password provider utility On Ubuntu sudo apt-get install sshpass Command to rsync /usr/bin/rsync -ratlz –rsh=”/usr/bin/sshpass -p password ssh -o StrictHostKeyChecking=no -l username” src_path dest_path
Can I forward env variables over ssh?
You can, but it requires changing the server configuration. Read the entries for AcceptEnv in sshd_config(5) and SendEnv in ssh_config(5). update: You can also pass them on the command line: ssh foo@host “FOO=foo BAR=bar doz” Regarding security, note than anybody with access to the remote machine will be able to see the environment variables passed … Read more
TortoiseGit with openssh key not authenticating using ssh-agent
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.
How to use Sublime over SSH
There are three ways: Use SFTP plugin (commercial) http://wbond.net/sublime_packages/sftp – I personally recommend this, as after settings public SSH keys with passphrase it is safe, easy and worth every penny http://opensourcehacker.com/2012/10/24/ssh-key-and-passwordless-login-basics-for-developers/ Mount the remote as local file system using osxfuse and sshfs as mentioned in the comments. This might be little difficult, depending on OSX … Read more
Adding a public key to ~/.ssh/authorized_keys does not log me in automatically
You need to verify the permissions of the authorized_keys file and the folder / parent folders in which it is located. chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys For more information see this page. You may also need to change/verify the permissions of your home directory to remove write access for the group and others. chmod … Read more
How to access SSH keys for a Google Cloud Platform Compute Engine VM instance?
Answer recommended by Google Cloud Collective
How to open remote files in sublime text 3
On server Install rsub: wget -O /usr/local/bin/rsub \https://raw.github.com/aurora/rmate/master/rmate chmod a+x /usr/local/bin/rsub On local Install rsub Sublime3 package: On Sublime Text 3, open Package Manager (Ctrl-Shift-P on Linux/Win, Cmd-Shift-P on Mac, Install Package), and search for rsub and install it Open command line and connect to remote server: ssh -R 52698:localhost:52698 server_user@server_address after connect to server … Read more
Unable to negotiate with XX.XXX.XX.XX: no matching host key type found. Their offer: ssh-dss
The recent openssh version deprecated DSA keys by default. You should suggest to your GIT provider to add some reasonable host key. Relying only on DSA is not a good idea. As a workaround, you need to tell your ssh client that you want to accept DSA host keys, as described in the official documentation … Read more