Automatically (or more easily) reconnect to a screen session after network interruption

后端 未结 6 1109
旧巷少年郎
旧巷少年郎 2021-01-30 00:20

ADDED: This question is now, I believe, subsumed by this one: Using GNU Screen completely transparently and automatically

See also this related question:
https://s

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-30 00:49

    If you like to connect to the same session always even it is active, detached or not exists yet:

    ssh -t user@server screen -xR screenName

    The same but create a new session if it is already active on some other pty:

    ssh -t user@server screen -rR screenName

提交回复
热议问题