your suggestion in the other post has solved my problem, but dont know why I am feeling that the telnet session seems flakey there (can let me down anytime), therefore am looking to execute this ssh session and do a sys reboot command
I set up remote printing on a clients Unix server to my Windows XP USB printer. My USB printer is connected directly to my PC (no print server and no network input on printer). With my Win XP PC connected to my cable modem (without the router), i can do
lp -dhp842c /etc/hosts and it prints. I... (7 Replies)
Hello
i am using sshpass to pass remote password into script
but phase some problems when try to execute some commands remotely
which means that the remote env not passed through sshpass
for example
sshpass -p 'XXX' ssh -o StrictHostKeyChecking=no -l myserver myserver visu_fis_pnes
... (2 Replies)
hello, i am facing some issue. I am using a simple bash script that via sshpass put a command into router. Now, problem is that i have a file and commands into it.
sshpass -p $pass ssh -o $log -n $user@$h /ip address set address=10.0.0.1/24
so if I have that command ip address set ... (0 Replies)