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

[FIX] [Kamal 2] Pemission denied (publickey) only for interactive commands #1087

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

augustosamame
Copy link

This should fix #1053

@bricejulia
Copy link

Hello, any update on this ?

cmd << " -t #{config.ssh.user}@#{host} -p #{config.ssh.port} '#{command.join(" ").gsub("'", "'\\\\''")}'"
cmd << " -tt" if interactive # Add -tt for interactive sessions
cmd << " #{config.ssh.user}@#{host} -p #{config.ssh.port}"
cmd << " '#{command.join(" ").gsub("'", "'\\\\''")}'" unless interactive
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we skipping the command here when not interactive?

@djmb
Copy link
Collaborator

djmb commented Oct 23, 2024

Is this fixing the same issue as #959?

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 this pull request may close these issues.

[Kamal 2] Error: Permission denied (publickey) only for interactive commands
3 participants