/* Move current configuration file to backup config file */
unlink (integrate_sav);
rename (integrate_default, integrate_sav);
+ free (integrate_sav);
fp = fopen (integrate_default, "w");
if (fp == NULL)
return CMD_SUCCESS;
}
+DEFUN (vtysh_ssh,
+ vtysh_ssh_cmd,
+ "ssh WORD",
+ "Open an ssh connection\n"
+ "[user@]host\n")
+{
+ execute_command ("ssh", 1, argv[0], NULL);
+ return CMD_SUCCESS;
+}
+
DEFUN (vtysh_start_shell,
vtysh_start_shell_cmd,
"start-shell",
install_element (VIEW_NODE, &vtysh_traceroute_cmd);
install_element (VIEW_NODE, &vtysh_telnet_cmd);
install_element (VIEW_NODE, &vtysh_telnet_port_cmd);
+ install_element (VIEW_NODE, &vtysh_ssh_cmd);
install_element (ENABLE_NODE, &vtysh_ping_cmd);
install_element (ENABLE_NODE, &vtysh_traceroute_cmd);
install_element (ENABLE_NODE, &vtysh_telnet_cmd);