Commit 3686a672 by tarokkk

Added ssh support

parent e6063f47
......@@ -3,6 +3,7 @@
application/nx-session=gedit.desktop;
x-scheme-handler/rdp=rdp.desktop
x-scheme-handler/nx=rdp.desktop
x-scheme-handler/shell=rdp.desktop
[Default Applications]
text/html=chromium-browser.desktop
......
......@@ -127,11 +127,11 @@ nx)
A
/usr/NX/bin/nxclient --session $f
;;
ssh)
shell)
#/usr/NX/bin/nxclient --dialog ok --message "Jelszó: $password" &
rm /home/user/.ssh/known_hosts
#rm /home/user/.ssh/known_hosts
#rxvt-unicode -e sh -c "ssh $user@$host -p$port; sleep 2"
rxvt-unicode -e sh -c "sshpass -p "$password" ssh -o StrictHostKeyChecking=no $user@$host -p$port; sleep 2"
gnome-terminal -e "sshpass -p "$password" ssh -o StrictHostKeyChecking=no $user@$host -p$port"
;;
*)
xmessage "$scheme is not supported."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment