>reptyr 11144
[-] Process 11145 (ssh) shares 11144's process group. Unable to attach.
(This most commonly means that 11144 has a suprocesses).
Unable to attach to pid 11144: Invalid argument
Chcel som si prehodiť do terminálu cele ssh pripojenie, pričom ssh je spuštané so skriptu (PID 11144)...
Presne to som chcel napisat
Ale podla manualu to ma riesenie. Najskor presunut vsteky podprocesy a potom rodicovsky proces- netestovane
Někde (třeba Ubuntu 14.04) můžete dostat hlášku:
Unable to attach to pid 18673: Operation not permitted
The kernel denied permission while attaching. If your uid matches
the target's, check the value of /proc/sys/kernel/yama/ptrace_scope.
For more information, see /etc/sysctl.d/10-ptrace.conf
Zde se dozvíte proč a co s tím:
http://tuxdiary.com/2014/08/08/reptyr/