www.howtogeek.com/ive-used-putty-for-years-but-this-open-source-ssh-app-replaced-my-3-tool-setup/
Category: ssh
-
message from my hoster: “ssh_exchange_identification: Connection closed by remote host”
- https://stackoverflow.com/questions/10127818/ssh-exchange-identification-connection-closed-by-remote-host-under-git-bash
- https://stackoverflow.com/a/15822474/3119172 – the only reasonable answer I read there:
I just ran into this today and it was because the server I was trying to connect to was overloaded with processing. So it may be possible that the server is low on memory or CPU starved.
-
SSH on Windows: OpenSSH, PuTTY
- https://github.com/PowerShell/Win32-OpenSSH
- https://github.com/PowerShell/Win32-OpenSSH/wiki
- https://github.com/PowerShell/Win32-OpenSSH/wiki/ssh.exe-examples
- %USERPROFILE%\.ssh\config – ~/.ssh/config – it allows this notation even on Windows OpenSSH (and be aware of this: %USERPROFILE = “~”!):
- IdentityFile ~/.ssh/id_ed25519
- https://en.wikipedia.org/wiki/ssh-agent – SSH authentication agent
On Windows OpenSSH’s “SSH authentication agent” is meant to run as Windows “service“. Starting a couple of years back, Microsoft decided, to deactivate that service by default. Now there are corporations, that do not want to have the “ssh-agent” service running at all. No SSH authentication agent, no caching of ssh ID-s (after enquiring the respective passphrase) – i.e. you have to enter your passphrases again and again. Right: if you are a bad boy, you use private keys with empty passphrases – but you are not a bad boy, are you?
The alternative to OpenSSH on Windows:
- https://en.wikipedia.org/wiki/PuTTY – the PuTTY package has its own SSH authentication agent: pageant – and pageant does not run as (Windows) “service“, you can start it yourself, so PuTTY may be your choice.
-
how do you copy the public key to an ssh-server? ssh-copy-id
$ ssh-copy-id -i ~/.ssh/id_ed25519-FOO.pub tim@just.some.other.server
-
updating my cygwin installation left me in trouble again — was: Microsoft Windows and the X Window System
- https://en.wikipedia.org/wiki/X_Window_System
- https://en.wikipedia.org/wiki/Cygwin/X
- https://en.wikipedia.org/wiki/SSH_tunnel
$ startxwin
I usually prefer the rootless way.
My applications nowadays “usually” run on a Linux (Debian, …) system or AIX.
Update 2018-04-18: After some cygwin updating startxwin prefers to shut down immediately instead of offering me a menu (“xwin-xdg-menu … — an XDG Desktop Menu Specification menu“) in the system tray. I only use it for starting a Cygwin terminal. How bad, I wasn’t able to recall the name of that menu. You cannot search, what you cannot name.
I had no idea, that startxwin uses this start-up file: /etc/X11/xinit/startxwinrc . The last utility called there usually makes X wait for ever, but it faulted:
/usr/bin/xwin-xdg-menu
This is an alternative way to start X / my fallback solution:
$ xinit — -multiwindow -clipboard
Within a shell window started there I ran:
$ strace /usr/bin/xwin-xdg-menu
It said, there was a problem with cygfreetype-6.dll . This web page tells you, which cygwin packages include the file in question:
https://cygwin.com/cgi-bin2/package-grep.cgi
I reinstalled that package, and everything was fine.
Any lesson learned? The cygwin updating silently (?!?) left at least one corrupt file (again …). Quite hard to find out, which one was concerned. I reinstalled that package within cygwin set-up, and my problem was solved. I cost me a couple of hours — and I did not need the thrill, trust me!