[PATCH lkp-tests] lib/monitor: print ssh info

After the user logs out, can copy this printed information to log in again. Signed-off-by: Wu Zhende <wuzhende666@163.com> --- lib/monitor.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/monitor.rb b/lib/monitor.rb index 283cd788d..522df713f 100755 --- a/lib/monitor.rb +++ b/lib/monitor.rb @@ -86,6 +86,7 @@ class Monitor def ssh_connect(ssh_host, ssh_port, web_socket) web_socket.close + puts "ssh root@#{ssh_host} -p #{ssh_port} -o StrictHostKeyChecking=no" exec "ssh-keygen -R #{ssh_host}; ssh root@#{ssh_host} -p #{ssh_port} -o StrictHostKeyChecking=no" -- 2.23.0

def ssh_connect(ssh_host, ssh_port, web_socket) web_socket.close
how about like this: cmd="ssh root@#{ssh_host} -p #{ssh_port} -o StrictHostKeyChecking=no" puts cmd exec cmd Thanks, Yinsi
+ puts "ssh root@#{ssh_host} -p #{ssh_port} -o StrictHostKeyChecking=no"
exec "ssh-keygen -R #{ssh_host}; ssh root@#{ssh_host} -p #{ssh_port} -o StrictHostKeyChecking=no" -- 2.23.0
-
Liu Yinsi
-
Wu Zhende