Debian, ssh: Difference between revisions

From Andreida
(Created page with "== 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 y...")
 
No edit summary
Line 7: Line 7:
and reload ssh
and reload ssh
/etc/init.d/ssh reload
/etc/init.d/ssh reload


== 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

Revision as of 08:48, 12 June 2018

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 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