My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
FAQ  
Frequently asked questions
Featured
Updated Nov 27, 2011 by gavin.brock


I am gettting ./csshX: Permission Denied.

This is most likely to be caused by the csshX script having the wrong permissions. The script must be executable by you.

(Change ./csshX to the path to your copy of csshX)

To check the permissions, do the following

$ ls -l ./csshX 
-rwxr-xr-x 1 user  staff  37921 Apr  9 16:10 csshX

If you are missing the x's then you might want to try:

    chmod 755 ./csshX

I'm using screen, and I can't send Ctrl-a from csshX

Actually, you can, just use Ctrl-a, Ctrl-a (the same key twice) to send a Ctrl-a to all slaves.

If you really miss Ctrl-a, you can remap csshX to use another key with the action_key setting in your .csshrc.


I am using a shell other than bash and I am getting errors

csshX uses bash specific commands to avoid polluting your bash history. It will try to test if you are not running bash and disable these commands if necessary.

This checking is not fool-proof, since Terminal.app can be configured to set the shell in many ways.

If you want to use a shell other than bash, the safest and cleanest way is to use the following command:

    chpass

This will let you set your shell system-wide and csshX will be able to detect it reliably.


I need to ssh through a gateway machine to get to my servers - how do I configure csshX?

Actually, you are better off configuring ssh to do this for you (then it will work for normal ssh, scp, ftp sessions too).

Add the following lines in your ~/.ssh/config:

Host far-away-server-??
    ProxyCommand ssh gwuser@gateway-host exec nc %h %p

This is assuming your gateway machine is “gateway-host” and the remote servers are called something like “far-away-server-01″, etc. The “Host” line is actually very flexible, it can handle multiple host names or patterns.

This all assumes you have the “nc” command available – which most OS-X’s have.


I use transparent terminal windows and "enable" mode makes them opaque

It's not possible to set (or return to a previous setting) of Terminal.app window transparency using Applescript. This appears to be a limitation of Terminal.app's Applescript interface, and we will need to wait for Apple to fix it. (Feel free to prove me wrong!)


I'm getting "Could not open a new pseudo-tty."

This happens when you try to open a lot of slave windows, and is caused by OS-X file/process/pty limits.

It is possible to try to increase these limits, but this require root privileges and a certain amount of bravery. Warning - these changes may break your OS

In /etc/sysctl.conf, add:

kern.tty.ptmx_max=511
kern.maxproc=2128
kern.maxprocperuid=1064

In /etc/launchd.conf

limit maxproc 1024 2048
limit maxfiles 1024 2048

After making these changes, reboot your machine.

More regarding this:

Comment by forgotte...@gmail.com, Apr 13, 2011

Logging input/output of multiple terminals for history and CYA. I created an SSH wrapper script that uses tee to record and log the input/output of all my terminals. I needed this for CYA purposes.

#!/bin/bash

DATE=`date +%y%m%d%M%H`
ssh $* | tee ${HOME}/sshlogs/$3-$DATE.log

I then modified the csshX program and changed the ssh command to my logssh wrapper. I've not done in depth testing, but works well for my purposes. Now all input and output for each session gets logged to ~/sshlogs/HOSTNAME-DATETIME.log

Works nicely for me, hope it helps someone else.

Comment by fcamb...@gmail.com, Mar 23, 2012

I just noticed if I : - Run csshX the first time passing N hostnames it opens N+1 terminals (N slaves, 1 master) - Then I cmd+Q to close everything. - When I launch csshX a second time, it opens (N+1)2 terminals (because I think it "remembers" the preceding opened windows)

I didn't noticed this at first sight, and when I started to close every terminal, I then had to remove ~100 terminal windows (it was the 20th time I ran csshX)

Comment by david.f...@gmail.com, May 23, 2012

Apple made changes in Lion that does cause the application to be re-opened with all previously open windows restored. This can be changed in the General tab of System Preferences with the check box below the number of recent items that are remembered. You can also close all windows before quitting the application to avoid this (or so is claimed).

There are other ways to change this for each specific applications, but I don't recall what those are any longer.


Sign in to add a comment
Powered by Google Project Hosting