Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux can not remove session after client.Close()? #66

Open
zrcshmily opened this issue Jun 12, 2024 · 0 comments
Open

linux can not remove session after client.Close()? #66

zrcshmily opened this issue Jun 12, 2024 · 0 comments

Comments

@zrcshmily
Copy link

zrcshmily commented Jun 12, 2024

When I use goph to create a session, remotely execute the launcher command(start program), and then call client.Close(), the machine does not receive a Removed session message(localhost systemd-logind: Removed session 1169. /var/log/messages), what can cause this to happen?

client, err1 := goph.NewConn(&goph.Config{
User: "root",
Addr: ip,
Port: 22,
Auth: auth,
Timeout: goph.DefaultTimeout,
Callback: ssh.InsecureIgnoreHostKey(),
})
out, err2 := client.Run("sh /data/script/bgservctl.sh xx xx x")
in script
nohup $ROOT/server >/tmp/gserver.log 2>&1 &

@zrcshmily zrcshmily reopened this Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant