www.howtogeek.com/ive-used-putty-for-years-but-this-open-source-ssh-app-replaced-my-3-tool-setup/
Category: PuTTY
https://en.wikipedia.org/wiki/PuTTY
-
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.
-
tramp says: “Cannot find local copy program: pscp” – but that does not mean there is something wrong with your emacs/tramp/PuTTY set-up
Every now and then I come across this error message:
Cannot find local copy program: pscp
This only occurs for “bigger” files (e.g. a 40k file), not for small files, because small files are being dealt with by plink.
tramp-do-copy-or-rename-file-out-of-band (in lisp/net/tramp-sh.el) tries to find the copy-program on exec-path instead of PATH, so we have to add putty-directory to exec-path as well. I amended this page to deal with the situation:
Fixed 😆
-
using the “telnet” utility for testing ports – it’s sort of gone (on Windows nowadays), but they allow you to re-enable it
Back in the old days before SSH was “the standard way” to log into a remote computer, there “were” a protocol (and a utility) called “telnet” in order to achieve that.
But the “telnet” utility traditionally also served for testing deliberate TCP/IP ports somewhere in the Internet resp. on your “Intranet”, e.g.
Can I connect to that Oracle DB server on that specific port?
That’s particularly useful, because the applications themselves (whether GUIs or CLI utilities) usually have poor ways of dealing with facts like:
- some firewall prevents you from accessing that Oracle DB server
- there is simply no route to that Oracle DB server
The “telnet” utility does not really have nicer error messages, but “everybody knows”, what it means, if you tell them, you tried to “telnet HOST PORT“, and it failed or timed out. And you know, it’s not the application, but it’s the network or the server.
In recent versions of Microsoft Windows the “telnet” utility got made sort of invisible, but there is an easy way to make it visible and available. See the links below!
But if you already have the PuTTY suite of utilities available on your PC, maybe you prefer the “plink” utility:
% …plink -telnet -P port host
- http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html – where to find the PuTTY suite of utilities
The Windows “defect”
and its fix:- http://superuser.com/questions/349080/is-there-a-telnet-utility-for-windows
- http://superuser.com/questions/110760/why-isnt-telnet-enabled-by-default-in-windows-7
- http://www.webtlk.com/2009/07/24/how-to-enable-telnet-in-windows-vista-and-windows-7/
If you wish to turn on and enable the “telnet” utility, here is what to do:
- Click Start.
- Click Control Panel.
- Now, go to Programs or Programs and Features.
- Click Turn Windows features on or off. (only “administrators” can proceed here.)
- In the Windows Features dialog box, tick Telnet Client check box.
- Click OK.
-
iReport, some Oracle database, JDBC, SQLRunner, …
Your task is to interface a rather remote Oracle database with iReport.
But you are not really sure, whether you are able to successfully connect to the database at all.
And you want to “explore” the database, its tables, its “views” …
No CLI utility like sqlplus available as well.
I am trying SQLRunner.
Says something like “… cannot connect …“.
I search the web for its precise error message.
Leads me to a firewall problem, i.e. some firewall prevents me from accessing the Oracle database. Aha?!! The article (on Stackoverflow) says, I should use “telnet” in order to find out, whether I can access the port in question.
But there is no “telnet” on that Windows PC. Please see my telnet related articles:
But I have putty available, and I can make putty to react like “telnet with a GUI” – and yes, it looks like, I can’t reach the port at all. Let’s talk to the corporate network support team! But how to tell them, that using telnet I found out, I cannot reach that port? No, I can’t, because there is no telnet, and I can’t tell them of putty, because putty has not got installed properly, I “put” it there myself. What a mess! At least I know, what problem I am dealing with.
The colleague next to me had somebody solve the firewall problem for her (last week or so). She runs SQLRunner successfully (I showed her). She can properly look at the Oracle tables. She is happy. And I know, I have to get somebody to solve my firewall / network issue. And I will be happy myself “one day”.
http://Jochen.Hayek.name/wp/blog-en/tag/sqlrunner/ – my SQLRunner related articles
-
if saving a file through emacs’s “tramp” is not successful …
On Windows …:
PLINK.EXE is part of the PuTTY family, and it’s the utility tramp is communicating through. (You do know that, as tramp does not set itself up to make use of PuTTY.)
On all platforms:
Burying the tramp buffer in question is actually my 1st approach on all platforms (Linux/Mac/Windows), whenever tramp communication seems to be stuck. Afterwards with a “clean new start” everything is fine again in like 99% of the respective cases.
Sometimes only taking emacs down seems to solve the issue.
-
emacs/tramp/win/putty: what versions to choose in January 2016
- “Windows 7 Professional” is set – because that’s the current company standard
- http://www.gnu.org/software/emacs/windows/ – the latest released version was fine for me: 25.0.50.1 – I am always happy to get and try the very latest released version
- http://www.gnu.org/software/emacs/manual/html_node/efaq-w32/Downloading.html
- http://ftp.gnu.org/gnu/emacs/windows/ !!!!!
- https://sourceforge.net/projects/emacs-bin/files/snapshots/ !!!
- tramp – as packaged with the emacs at the location just referred to
- PuTTY to be found at http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
- PuTTY-0.66 works for me – I am happy to try newer ones, if asked to
- https://sourceforge.net/projects/ezwinports/files/
As recently I successfully ssh-connected to hosts beyond the corporate firewall using OpenSSH and PuTTY through a SOCKS5 proxy, I am now also able to create tramp-connections to “out there“.