summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/client.py b/paramiko/client.py
index 69666360..53282c01 100644
--- a/paramiko/client.py
+++ b/paramiko/client.py
@@ -464,7 +464,7 @@ class SSHClient (ClosingContextManager):
"""
chan = self._transport.open_session()
chan.get_pty(term, width, height, width_pixels, height_pixels)
- chan.update_environment_variables(environment or {})
+ chan.update_environment(environment or {})
chan.invoke_shell()
return chan