diff --git a/protocols/ssh/src/ssh_client.c b/protocols/ssh/src/ssh_client.c index 10f76067..5f304a04 100644 --- a/protocols/ssh/src/ssh_client.c +++ b/protocols/ssh/src/ssh_client.c @@ -192,20 +192,13 @@ void* ssh_client_thread(void* data) { } /* Request PTY */ - if (channel_request_pty(client_data->term_channel) != SSH_OK) { + if (channel_request_pty_size(client_data->term_channel, "linux", + client_data->term->term_width, client_data->term->term_height) != SSH_OK) { guac_protocol_send_error(socket, "Unable to allocate PTY for channel."); guac_socket_flush(socket); return NULL; } - /* Request PTY size */ - if (channel_change_pty_size(client_data->term_channel, - client_data->term->term_width, client_data->term->term_height) != SSH_OK) { - guac_protocol_send_error(socket, "Unable to change PTY size."); - guac_socket_flush(socket); - return NULL; - } - /* Request shell */ if (channel_request_shell(client_data->term_channel) != SSH_OK) { guac_protocol_send_error(socket, "Unable to associate shell with PTY.");