Debian, ssh

From Andreida
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ssh errors

error: X11 forwarding request failed on channel 0

if you find in the server log:

error: Failed to allocate internet-domain X11 display socket.

then you can try to add the following to your /etc/ssh/sshd_config

AddressFamily inet

and reload ssh

/etc/init.d/ssh reload


multiple putty windows with horizontal and vertical layouts via SuperPutty

The advantage is, you don't need any X-Server or X-Client files. The disadvantage is, you'll have to do something whenever you switch your workstation. Your configuration is on the client and will be lost from time to time instead of just having all important stuff on your server.

To manipulate screens, grab the Input the Connection tab, left-click and hold, and drag the tab down. A colored screen appears with some navigation areas. Here, you drag the screen to the section of the SuperPutty program that you want to move the tab to.

Source: TechTip: SuperPutty, the Enhanced PuTTY SSH Client GUI

multiple window shell, connect to Linux from Windows

  • install a x-server on your Windows PC, like VcXsrv
  • install terminator on your target Linux system
apt-get install terminator
  • install xauth so the remote creation of the x-window is possible
apt-get install xauth
  • start the x-server on your Windows
  • Use Putty to start terminator remote later


First you have to start "terminator" "locally" after you ssh to the target system. Make sure you have "X11 forwarding" enabled when you connect. Then just start terminator. If you get

ConfigBase::load: Unable to open /root/.config/terminator/config ([Errno 2] No such file or directory: '/root/.config/terminator/config') 

or something like that, then create the missing directory/file:

mkdir -p /root/.config/terminator
touch /root/.config/terminator/config

If every thing is ok when you start terminator after you ssh to the system, you can prepare the remote start. (If you are working from a Linux system, just ssh and start terminator, it makes no sense at all to remote start it in this case.)

layout

  • start terminator
  • right click into the window
  • select preferences
  • switch to "layouts"
  • create a layout and remember the name

putty, start terminator, load layout

  • create a putty entry that connects to the target system
  • make sure Connection/SSH/X11/"Enable X11 forwarding" is selected
  • add Connection/SSH/"Remote command"
 terminator -l 4v1 --geometry 1920x1100-0+0
  • Here you have to use your own values of course.
    • "4v1" is my layout name
    • 1920x1200 is the size of the window
    • -0+0 is the position of the window