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

[BUG] - invoke_shell do not send environment to shell #2331

Open
Tsvetk opened this issue Nov 17, 2023 · 0 comments
Open

[BUG] - invoke_shell do not send environment to shell #2331

Tsvetk opened this issue Nov 17, 2023 · 0 comments
Labels

Comments

@Tsvetk
Copy link

Tsvetk commented Nov 17, 2023

Are you using paramiko as a client or server?

Client

What feature(s) aren't working right?

SSH

What version(s) of paramiko are you using?

3.3.1

What version(s) of Python are you using?

3.9.2

What operating system and version are you using?

debian 11.8

If you're connecting as a client, which SSH server are you connecting to?

No response

If you're using paramiko as part of another tool, which tool/version?

No response

Expected/desired behavior

Environment send to shell in def invoke_shell class Client

https://github.com/paramiko/paramiko/blob/66117732de6de03914308f9a21b05b50a781d13c/paramiko/client.py#L599C24-L599C24

Actual behavior

Environment do not send to shell

Forgot after chan.get_pty(term, width, height, width_pixels, height_pixels)
add - chan.update_environment(environment)

https://github.com/paramiko/paramiko/blob/66117732de6de03914308f9a21b05b50a781d13c/paramiko/client.py#L599C24-L599C24

How to reproduce

No response

Anything else?

No response

@Tsvetk Tsvetk added the Bug label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant