ssh_menu refactoring