KVM test: restructure remote_login() and remote_scp()

- Add _remote_login() and _remote_scp() which, instead
  of taking a command line, take an existing session
  and operate on it.  This is useful for logging into
  existing always-open sessions, such as serial console
  sessions.

- Merge ssh/telnet/netcat into remote_login().

Signed-off-by: Michael Goldish <mgoldish@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4662 592f7852-d20e-0410-864c-8624ca9c26a4
2 files changed