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

SSH connection without specifying a user #97

Closed
pyrech opened this issue Mar 26, 2024 · 1 comment · Fixed by #98
Closed

SSH connection without specifying a user #97

pyrech opened this issue Mar 26, 2024 · 1 comment · Fixed by #98

Comments

@pyrech
Copy link
Contributor

pyrech commented Mar 26, 2024

We often define the SSH access configuration in the SSH config file (f.e. in ~/.ssh/config):

Host my-prod
    Hostname x.x.x.x
    User debian

In such cases, we can connect to the server with only ssh my-prod. But unless I'm wrong, this is not possible at the moment as the user argument is always mandatory in spatie/ssh.

Would it be possible to make it optional? I could give it a try if you would accept such a PR 🙂

@freekmurze
Copy link
Member

Feel free to send a PR for this.

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

Successfully merging a pull request may close this issue.

2 participants