Comments (2)
@clintoncwolfe Currently looking at the code what I understood is its actually timing out the session and closing it instead of actually timing out the command execution which we want to do if I am not wrong. That is we should timeout the sleep 60
but we are timeout the session. The command which I tried is behaving properly is timeout 2s sleep 60
which we really need to execute but what we currently executing the sleep 60
and somewhere as per my understanding closing actual connection or session https://github.com/inspec/train/blob/master/lib/train/transports/ssh_connection.rb#L360
from train.
That idea from @Vasu1105 is one I also considered - prefix the command string with timeout
I was wary about that option because it assumes timeout
is on path on the target. Maybe it would be acceptable (but a little slower) for train to send which timeout
to test if the target will support this?
Rolling back the entire command timeout feature
It would be nice to keep the feature for winrm , if that connection type is working OK.
from train.
Related Issues (20)
- Inspec Command Resource stdout interrupted by ssh PrintLastLog banner. HOT 16
- Detect UbiOS HOT 1
- train should be using /etc/os-release for all Linux os detection HOT 1
- Train needs more robust stat functionality on Linux
- SSH Connection Fails When using non-default KEX HOT 3
- Required dependencies for vmware transport not shipped. HOT 12
- train-aws plugin is not detected when installing the Inspec gem
- Windows Defender detecting encoded powershell invocations as malware HOT 1
- Regression: Train::Transports::SSH v3.8.5 HOT 5
- vmware.rb cannot load such file HOT 3
- Transport options given at CLI not honored HOT 1
- Transports that detect Powershell Core (pwsh) or Powershell (powershell) do not function if Powershell Core is also installed on Windows.
- Transports to detect PowerCLI Version causes a logic issue. PowerShell Core (PWSH) + Offline Environment HOT 4
- Upgrade googleauth to 1.x release HOT 3
- Openssl 3 error with net-ssh < 7
- enhance authentication to azure (drop azure-ruby-sdk)
- Default user_known_hosts_file in ssh connect option should be nil instead of '/dev/null'
- Intermittent issue for AL2: Sorry, we are unable to detect your platform (Train::PlatformDetectionFailed) HOT 2
- InSpec breaks with ActiveSupport 7.1.0 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from train.