Github user necouchman commented on a diff in the pull request: https://github.com/apache/guacamole-server/pull/164#discussion_r191088192 --- Diff: src/common-ssh/ssh.c --- @@ -518,6 +520,63 @@ guac_common_ssh_session* guac_common_ssh_create_session(guac_client* client, return NULL; } + /* Check known_hosts, start by getting known_hosts file of user running guacd */ + struct passwd *pw = getpwuid(getuid()); + const char *known_hosts = strcat(pw->pw_dir, "/.ssh/known_hosts"); --- End diff -- Okay, implemented as suggested. Again, this might be a little clunky - let me know if you think it's worth moving this to its own function - maybe even in the key.h/key.c files within the SSH code?
---