How to? Use Take Command for SSH?

Aug 16, 2008
124
0
#2
PuTTY is a terminal emulator and SSH client but not a shell. That means PuTTY's shell features are not "rudimentary" but simply non-existing. Even if Take Command had SSH built-in, that wouldn't make any difference in regard to the shell on the remote host you are connecting to.
 

rconn

Administrator
Staff member
May 14, 2008
10,504
94
#7

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,575
46
Albuquerque, NM
prospero.unm.edu
#8
Or maybe the question was about how to run TCC over SSH? You would have to install TCC on the server, of course. The details of how to configure the SSH software to run TCC rather than CMD.EXE will be software-specific.

If you do manage to get this going, you'll probably want to add ConsolePopupWindows=Yes to your .INI file, since the GUI popups will be invisible through your telnet connection.
 
May 31, 2008
382
2
#10
Telnet alone I don't think so. Telnet is a purely text protocol, just like email. You'd need some sort of terminal emulator, possibly over telnet, to write directly to an emulated console. But then I don't know that SCRPUT, DRAWBOX etc. write control sequences, do they?
 
Nov 6, 2014
8
0
#11
Is it possible to use Take Command for a secure/SSH connection? I don't see the term SSH in the help documentation. I need to connect securely to my digitalocean server via SSH. I'm currently using Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html), but it's shell is rudimentary.
I hope I'm not too late for the OP - I'm trying to use Putty in a TC tab and have gotten part of the way there using some techniques that other people have used with the Console2 program. Following the suggestions here:

http://blog.jimueller.com/post/29709142253/use-putty-with-console2

I can get a Putty session to run in a cmd.exe window (and therefore a TC tab) with half decent results. Basically, you launch the putty session using the plink.exe command and the session remains in the original console window instead of the console that the GUI putty.exe program would create. For example:

c:\util\ansicon "C:\util\plink.exe" -load "6467 - HW 1.5 - COM9"

where "6467 - HW 1.5 - COM9" is the name of the putty configuration I want to connect using. ansicon is a helper program that converts ANSI terminal control sequences (such as for text color or to move the cursor) into appropriate Win32 console window API calls.

The one problem I have is that arrow keys are not usable in the terminal session. I'm not sure if this is a limitation of Putty, plink or ansicon. It's not a TC limitation because the behavior is exactly the same when running in a standalone cmd.exe console window.

However, if someone at JPSoft or in the forum can suggest how TC could attach to the console window that putty.exe creates, I'd appreciate it (because I think that will fix the arrow key problem). Putty.exe starts with a simple GUI dialog box to get configuration information, then you you make a connection it creates something that looks like a console window (I'm not sure if it technically is though). I was expecting that TC's "Tabs/Attach..." would list it as something that TC could present in a tab, but no such luck. If someone can explain how I can convince TC to do that (or if JPSoft can take this as a feature request), that would be awesome.
 
#13
But PLINK.EXE is a real console. The command below gives me a nicely colored interactive ssh session (on the remote host "by"). If I execute the command from a TCC running in a TCMD tab, then I return to TCC when I exit the remote session. If I put that command on a TCMD toolbar button (open a new window) that TCMD opens a tab for it and closes the tab when I'm done.
Code:
P:\ansi166\x86\ANSICON.EXE g:\putty\plink.exe -ssh by
The plink session doesn't seem as robust as a real putty session. For example, I ran "vi .cshrc" and couldn't do anything, including exit vi.
 
Nov 6, 2014
8
0
#14
Thanks for the info. I seem to have a little better luck than you: vi works for me in a plink session (at least when using it to connect to the embedded system I'm working on), but arrow keys don't. Given that both ansicon and putty/plink are open source there's some hope I could get this to work better, but I suspect I'll never put in the effort and will just live with putty outside of the TC tabs.