added test for port
@@ -235,7 +235,7 @@ COMMAND_KWARGS = {
COMMAND_RESULT = {}
COMMAND_OUTPUT_rm = """
-client:~/>TERM=xterm-mono ssh -l user host.domain.net
+client:~/>TERM=xterm-mono ssh -p 25 -l user host.domain.net
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@ -250,7 +250,7 @@ Offending RSA key in /home/you/.ssh/known_hosts:86
RSA host key for host.domain.net has changed and you have requested strict checking.
Host key verification failed.
client:~/>rm /home/you/.ssh/known_hosts
-client:~/>TERM=xterm-mono ssh -l user host.domain.net
+client:~/>TERM=xterm-mono ssh -p 25 -l user host.domain.net
To edit this message please edit /etc/ssh_banner
You may put information to /etc/ssh_banner who is owner of this PC
Password:
@@ -261,7 +261,7 @@ host:~ # export TMOUT="2678400"
host:~ #"""
COMMAND_KWARGS_rm = {
- "login": "user", "password": "english", "known_hosts_on_failure": "rm",
+ "login": "user", "password": "english", "known_hosts_on_failure": "rm", "port": 25,
"host": "host.domain.net", "prompt": "client.*>", "expected_prompt": "host.*#"
}
