X11 forwarding fails every 20-30 minutes - ssh

I have XQuartz 2.7.9 installed on OS X 10.11.5 and I'm able to successfully ssh with X11 forwarding to Linux machines. At first, I can open X11 windows without a problem. However, after about 20-30 minutes I cannot open any additional X11 windows. The X11 windows I already have open are fine.
With one Linux machine I get the error: "Fatal IO error: client killed". And on another Linux machine I get the error: "Cannot connect to X server".
I've tried messing with the value of ConnectTimeout in /etc/ssh/ssh_config, thinking that this might help, but it didn't. As of now, what I'm doing is exiting the current ssh session and then re-sshing. This gets real annoying, real quick.

ForwardX11Timeout = 500h
in /etc/ssh/ssh_config

Related

SSHing into WSL2 of a remote Windows 10 from Windows 10

I am planning on using VS Code to work out of WSL2 installed on a remote machine. Before doing that, I wanted to check the direct connectivity from a Windows 10. I followed the instructions given in this blog. Also, the remote Windows 10 is on a VPN.
When I use the command ssh <username>#<IP address>, I get the message
kex_exchange_identification: read: Connection reset
Is there anything I am missing to get the connection going?

Pycharm cannot finish updating skeletons

I'm newly moving from a Linux working environment to Windows, and I'm mainly using local port forwarding+Pycharm to run my python code on a server that is double-hop from my laptop.
I am able to establish the ssh tunnel through Windows cmd or MobaXterm local terminal or MobaXterm tunneling tool. I works fine on my Pycharm, when I check it from tools/deployment/configuration/test connection, and I can also see the files in remote server. But every time I start my Pycharm, it shows two background process, "updating python interpreter" and "updating pycharm helper", and the precess bar simply do not show any moving on! And I cannot run python on remote server, because Pycharm says I lack python helper.
And most wired, when it is running these two precess, my terminal for local port forwarding freezes, and I cannot type in commands in the jump server. And when I try to recheck the connection, it turns out that connection fails.
My ssh tunneling+pycharm deployment used to work fine in my Ubuntu. Thanks anybody who can shed light on my confusion!
Well, thanks everyone, I have solved this problem.
The reason is simple, but I did not notice that the ~/.pycharm_helper 's size is actually changing in the process, while the GUI bar may be not moving.
So it is due to my double-hop inconvenience, and the low Internet speed. I left it in dorm for a whole night out, and it comes out just fine.

Cygwin X11 forwarding using Xming

i am connected with cygwin to a ssh server
there i want to open a application via x11-forwarding
i use xming as x11 server on my windows machine
now in putty i had the possibility to automatically forward x11 and so i dont need to export my DISPLAY, thats not a problem i can set it every time i connect to the server.
but if i export my DISPLAY, it wont start the application it always says:
Error: Can't open display: xxx.xx.xx.xx
i really liked the way putty worked and want to user cygwin.
i tried Cygwin/X but there always opens another terminal which i dont really like. i like to open my application from my existing standart cygwin terminal where i also connect to the server
is there any way doing this?!
i startet the xserver with the following command and after that i could start the programms automatically on my remote ssh server and it was forwarded automatically to my xserver
startxwin -- -listen tcp &
after this i even didnt have to set the DISPLAY

Cannot open ssh connection between windows 10 and OS X with Bitvise ssh client

I need an sftp windows client and I just installed Bitvise. My windows 10 version runs on Parallels (version 10) on a Mac (OS X Yosemite version 10.10.5). As a test, I tried to open an ssh connection with the Bitvise client to the ssh server running on the Mac. I first went to the Mac, System Preferences -> Sharing and clicked on File Sharing and Remote Login (for all users, just to be sure). I can perfectly ping the Mac from Windows as well. Now when I try to open a connection from Windows to the Mac (Bitvise GUI or simply sftp from the command line), invariably I get this message.
The SSH2 session has terminated with error. Reason: Error class: LocalSshDisconn, code: ConnectionLost, message: FlowSshTransport: received EOF.
Does anybody knows what's going on? I couldn't find that error message anywhere. Just for your info I tried this from the command line
sftp mymacuser#my.mac.ip.address
And then again
ping my.mac.ip.address
works perfectly OK.
Thanks very much in advance.

Unable to start X11 through ssh using Putty

Currently trying to setup the mininet virtual machine. I did all according to the instructions. Before proceeding following is my setup details.
My host platform - Windows 8.1
My guest OS : Ubuntu 14.04, 32-bit with mininet. I downloaded the
ovf this one - mininet-2.2.0-141209-ubuntu-14.04-server-i386. Running on VirtualBox
I installed the required packages on the mininet-ubuntu-server (xserver-xorg-core,xserver-xorg,xorg,xorg openbox,ubuntu-desktop). One package fxlrg, I could not install as it was saying "unable to locate package"
Then I used the command "startx" on virtualbox console, it started the ubuntu desktop but very slow and with poping up 4 to 5 errors.
I have already setup the network for host-only adapter, I am able to ping from host machine to guest machine, I am able to ssh from host machine to guest machine using PuTTy. I am able to login with no problems.
But I don't know to see the x11 window from PuTTy. I have already enabled the X11 forwarding on PuTTy and I have already installed the Xming on windows. Please suggest how to debug and how to fix this. I have no idea how to proceed now.
You may need to enable X11 SSH Forwarding in the /etc/ssh/ssh_config file.