Timeline for SSH Remote Execution - checking server can do it?
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 2, 2018 at 10:13 | answer | added | Marco | timeline score: 1 | |
| Dec 14, 2015 at 12:08 | comment | added | alexandicity | I don't have file system access on the device, so I'm not able to edit sshd_config - a pity! Your idea to use expect sounds like the next best option - thanks! | |
| Dec 13, 2015 at 17:05 | comment | added | Jakuje | I think Rui was probably close to the correct answer. If it uses openssh and behaves this way, it looks like there is ForceCommand option used in sshd_config. Can you verify it? If you would be able to change it or remove it you are done. If not, you would probably have to code some expect script to interact with the shell (you can find many similar questions about this topic). | |
| Dec 13, 2015 at 12:42 | history | edited | alexandicity | CC BY-SA 3.0 | added 4456 characters in body |
| Dec 13, 2015 at 12:32 | comment | added | alexandicity | @Jakuje: With -vvv, I indeed get a lot of output. Some info: remote system is OpenSSH5.9. I have added the -vv output to the question above - but I can't understand most of it.. -tt gave me an interactive shell on the remote machine as if I hadn't passed a command at all - no indication that the command executed, I'm afraid.. | |
| Dec 12, 2015 at 19:15 | comment | added | Rui F Ribeiro | Embedded devices often do not run openssh, often dropbear is used. Anyway, does it have a forced command in the daemon? | |
| Dec 12, 2015 at 18:59 | history | edited | Jakuje | CC BY-SA 3.0 | formatting |
| Dec 12, 2015 at 18:55 | comment | added | Jakuje | post output of ssh -vvv user@device_host uptime to have at least a bit idea what is going on behind the scenes and what is the other side running. Later on you can try to workaround it with ssh -tt user@device_host uptime (behave like interactive script), if it would help. | |
| Dec 12, 2015 at 18:46 | history | asked | alexandicity | CC BY-SA 3.0 |