Sample Header Ad - 728x90

grep on remote host with multiple commands

-1 votes
2 answers
675 views
**2nd Command is getting ignored**
ssh -q -t -o ConnectTimeout=10 learnserver sudo su - root -c 'hostname' && "/grep PermitRootLogin /opt/ssh/etc/sshd_config/"
Asked by Praveenora (1 rep)
Jul 31, 2020, 07:23 AM
Last activity: Jul 31, 2020, 01:57 PM