main: Reduce scope of ssh_started variable
This change fixes the "‘ssh_started’ defined but not used [-Wunused-variable]" warning,
during build with --disable-ssh-agent
option.
This change fixes the "‘ssh_started’ defined but not used [-Wunused-variable]" warning,
during build with --disable-ssh-agent
option.