• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Anyone familiar with Ssh sessions?

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Any one familiar with ssh sessions, can you please tell me where the default command time-out of 120 sec was set? And, did they provide any provision to override the default time?

*******Doing is better than Thinking**********
 
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My guess it's set at the server, inside the sshd_config file.
 
santosh batta
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rob,
Does that mean, we can't override it? I assume, there should be a provision to set this time-out. Isn't it? I've tried sshSession.sendWait(String cmd, long timeLimit). But I don't know, why its not working. I'm getting error message "Exceeded Task timeout of 120000ms waiting for the end prompt."
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
my guess is there is not a way to override it. Why would there be? it is a security feature, and allowing someone to override it would make it worthless.
 
santosh batta
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take for instance, if a script take more than 120s(2 min.) to execute... in that case Ssh sessions won't help me. Am I wrong? If that is the case, can I use any other APIs for this purpose?
reply
    Bookmark Topic Watch Topic
  • New Topic