(this HowTo is for SSH2) You can read the reasons why you should use SSH instead of RSH everyday on the newspaper when another script-kiddy hacked into an insecure system/network. So SSH is a good decision at all.
freedom x security = constant (from a security newsgroup) |
At first a running secure-shell daemon on the remote site is required. If it is not already installed install it! (rpm -i [sshd_rpm_packeage_from_your_linux_distribution_cd]) If it is not already running start it with:
/etc/init.d/ssh start |
ssh-keygen |
/root/.ssh/identity //your private key and /root/.ssh/identity.pub //your public key |
If you ssh to this remote host now you will be prompted for the passphrase of your public-key. Giving the right passphrase should give you a login.
What is the advantage right now??? The passphrase is normally a lot longer than a password!
The advantage you can get using the ssh-agent. It manages the passphrase during ssh login.
ssh-agent |
echo $SSH_AUTH_SOCK and echo $SSH_AGENT_PID |
SSH_AUTH_SOCK=/tmp/ssh-XXYqbMRe/agent.1065 export SSH_AUTH_SOCK SSH_AGENT_PID=1066 export SSH_AGENT_PID |
setenv SSH_AUTH_SOCK /tmp/ssh-XXYqbMRe/agent.1065 setenv SSH_AGENT_PID 1066 |
You just have to add your public-key to the ssh-agent with the ssh-add command.
ssh-add |
You could (should) add the ssh-agent and ssh-add commands in your login-profile e.g.
eval `ssh-agent` ssh-add |
openMosixview There is a menu-entry which toggles using rsh/ssh with openMosixview. Just enable this and you can use openMosixview even in insecure network-environments. You should also save this configuration (the possibility for saveing the current config in openMosixview was added in the 0.7 version) because it gets initial data from the slave using rsh or ssh (just like you configured).
If you choose a service wich is not installed properly openMosixview will not work! (e.g. if you cannot rsh to a slave without being prompted for a password you cannot use openMosixview with RSH; if you cannot ssh to a slave without being prompted for a password you cannot use openMosixview with SSH)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |