question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSH profile with same host do always use the first profile's scripts

See original GitHub issue

Describe the problem:

When I create a new profile B connecting to a host for which another profile A already exists, that B profile will execute the A profile’s scripts instead of its own.

To Reproduce:

  • Create a SSH profile named ‘A’ to a remote server (use username, hostname and SSH keys) with a login script [$, echo Hello]
  • Create another SSH profile named ‘B’ to the same server, with same configuration, and set login script [$, echo World]
  • Open profile B

Expected : it shows World after login Actual : it shows Hello after login

Note: script in GUI always look correct

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
Eugenycommented, Mar 31, 2022

Thanks for the report. A workaround is to disable “session reuse” in the advanced settings of both profiles.

0reactions
Eugenycommented, Apr 20, 2022

It’s fixed in 1.0.175

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change profiles for ssh machines (triggered profile changing)
A coworker was recently showing me how he uses different terminal profiles to give himself quick cues about what machine the terminal is...
Read more >
Extract and Configure a Host Profile from the Reference Host
Use the vSphere Client to connect to the vCenter Server system that manages the vSphere Auto Deploy server. Click Policies and Profiles and ......
Read more >
ssh profiles and scripts - Google Groups
Hello guys,. Im looking forward to use this app in the future, my question is there anyway to setup some profiles so I...
Read more >
Configuring the New Windows Terminal with Secure Shell ...
These profiles make up the different command line environments on your machine and, by default, include Windows Powershell, Command Prompt and ...
Read more >
How To Configure Custom Connection Options for your SSH ...
Each section spans from one Host header to the following Host header. ... During this process, it will always use the first value...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found