Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Sreekanth1521

  1. Sreekanth1521

    script is printing the code lines as part of the output

    #!/bin/bash haf() { sshpass -p "$1" ssh -tt -o StrictHostKeyChecking=no "$2"@"$3" <<'SSH_EOF' echo "request msha actions status" | /opt/tel/vs/ns/current/bin/ns_cli > txt1 tr -s " " < txt1 > txt2 cut -d " " -f 2 txt2 > txt3 var1=$(<txt3) if [ "$var1" = "MASTER" ] then var2=1...
  2. Sreekanth1521

    Unable to SSH

    Hi Below is my setup. MACHINE A --------------------> MACHINE B --------------------> MACHINE C I want to ssh Machine C from Machine A. I tried this with the below command, but failed. $ sshpass -p 'PassWordB' ssh -p 2222 -tt admin@<ip - B> sshpass -p 'PassWordC' ssh admin@< 172.16.1.21>...

Part and Inventory Search

Back
Top