JeffB Posted November 20, 2021 Share Posted November 20, 2021 It seems newer firmware versions of the CK3 have a SSH timeout of 70? seconds, such that if there's no communication the PMAC will close the connection. This causes problem for our software, is it possible to set this timeout period? Quote Link to comment Share on other sites More sharing options...
hjpark Posted November 25, 2021 Share Posted November 25, 2021 Hello, I've had same problems too. You can set it in 'Tools -> option -> Power PMAC -> Communication Settings' Quote Link to comment Share on other sites More sharing options...
Omron Forums Support Posted November 29, 2021 Share Posted November 29, 2021 I was not able to duplicate this issue. Can this be observed by logging in with putty (through SSH) and then letting the window sit for more than 70 seconds? What is the form factor and firmware version? I am using a CK3E with 2.6.1.0 Quote Link to comment Share on other sites More sharing options...
Alex Anikstein Posted November 29, 2021 Share Posted November 29, 2021 This ended up moving to email and likely has been resolved. It seems like it's some settings in Linux--specifically "ClientAliveCountMax" and "ClientAliveInterval" in the file located in "/.readonly/etc/ssh/sshd_config". Increasing these variables should increase the timeout before the ssh session is closed. (Alternately, setting ClientAliveInterval to 0 should disable this timeout altogether) Quote Link to comment Share on other sites More sharing options...
JeffB Posted December 6, 2021 Author Share Posted December 6, 2021 Mr. Park's advice is correct. I edited the sshd_config file directly using putty but the Tools -> Options -> Power PMAC -> Communication Settings contains the same settings. Thanks! Quote Link to comment Share on other sites More sharing options...
wanwan Posted February 22, 2022 Share Posted February 22, 2022 Unfortunately, I tried the two solutions you mentioned to change the cpu101 in my hand, but the ssh parameters could not be saved. Quote Link to comment Share on other sites More sharing options...
wanwan Posted February 22, 2022 Share Posted February 22, 2022 The default value will be restored after the power is turned on again. Quote Link to comment Share on other sites More sharing options...
wanwan Posted February 23, 2022 Share Posted February 23, 2022 On 12/6/2021 at 8:27 PM, JeffB said: he sshd_config file directly using putty but the Tools -> Options -> Power PMAC -> Commun how TO EDIT the readonly file? very thanks! Quote Link to comment Share on other sites More sharing options...
Omron Forums Support Posted February 23, 2022 Share Posted February 23, 2022 Option 1 When you edit the values in the IDE a linux file with the correct settings is created, but it will not survive reboot. You can move this file to the saved location to make changes permeant. This can be done from the IDE terminal. System mount -o remount,rw System cp /.readonly/etc/ssh/ssh_config /.readonly/etc/ssh/ssh_config_backup System cp /etc/ssh/ssh_config /.readonly/etc/ssh/ssh_config System mount -o remount,ro / Option 2 Add just the alive interval. System mount –o remount,rw / System sed -ie '/^Host */a ClientAliveInterval 0' /.readonly/etc/ssh/ssh_config System mount –o remount,ro / Option 3 Add all needed lines to the file. This can be done through Putty. mount -o remount,rw nano /.readonly/etc/ssh/ssh_config [Move to end of file with arrow keys] [Paste with right click] [Ctrl-X, Y, ENTER] mount -o remount,ro / These are the lines to paste. Change X to an integer or leave it out. ClientAliveCountMax X ClientAliveInterval 0 1 Quote Link to comment Share on other sites More sharing options...
wanwan Posted February 23, 2022 Share Posted February 23, 2022 very thanks ,i try your suggestion but i just can't find the backup file.My firm is 2.6.0.0. Quote Link to comment Share on other sites More sharing options...
wanwan Posted February 23, 2022 Share Posted February 23, 2022 43 minutes ago, Eric Hotchkiss said: When you edit the values in the IDE a linux file with the correct settings is created, but it will not survive reboot. You can move this file to the saved location to make changes permeant. To do this: mount -o remount,rw cp /.readonly/etc/ssh/ssh_config /.readonly/etc/ssh/ssh_config_backup cp /etc/ssh/ssh_config /.readonly/etc/ssh/ssh_config mount -o remount,ro / Another option would be to add only the needed lines to the file mount -o remount,rw nano /.readonly/etc/ssh/ssh_config [Paste with right click] [Ctrl-X, Y, ENTER] mount -o remount,ro / These are the lines to paste. Change X to an integer or leave it out. ClientAliveCountMax X ClientAliveInterval 0 Quote Link to comment Share on other sites More sharing options...
CharlesCarter Posted October 28, 2022 Share Posted October 28, 2022 (edited) I'm executing a script connecting via password-less SSH on a remote host. I want to set a timeout, so that if the remote host is taking an infinite time to run, I want to come out of that ssh session and continue other lines in my sh script. How can I set a timeout? Edited October 29, 2022 by CharlesCarter Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.