vinhnguyen18
Technical User
Please help.
I keep getting this error when I execute the following "spawn ssh...." command.
Here is my code:
spawn ssh $ip -l $username -s netconf < /cygdrive/c/pat/somefile.xml
expect {
"assword:" {
send -s "password\r"
expect "]]>]]>"
sleep 1
}
timeout {
puts "timeout"
exit
}
}
Getting this error:
subsystem request failed on channel 0
I keep getting this error when I execute the following "spawn ssh...." command.
Here is my code:
spawn ssh $ip -l $username -s netconf < /cygdrive/c/pat/somefile.xml
expect {
"assword:" {
send -s "password\r"
expect "]]>]]>"
sleep 1
}
timeout {
puts "timeout"
exit
}
}
Getting this error:
subsystem request failed on channel 0