hierynomus / hierynomus/sshj

Can not get command response in centos system

Open
#420 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.7k
Forks
620
Avg merge
3d 23h
Merged PRs (30d)
11

Description

use common user to login,then excute
Command cmd = session.exec("ss -lnp|grep LISTEN|grep 80")
exit status =1 in centos system 。
but exit status =0 in centos system。
if i use root user to excute the Command in centos system ,that the exit status =0

I use Xshell ssh login .and exucte "ss" command is ok,
but use sshj execute "ss", error message is : bash: ss: command not found

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.