Posts Tagged ssh
Exchange SSH keys and avoid logins and passwords
Working in a Linux environment, changes are you’re often using ssh, copying or rsyncing files between servers and workstations. I find it very annoying to always have to type in my login credentials. To avoid that, we can exchange ssh keys so that all the authentication is done utilizing those keys.
We can achieve that by following these two simple steps:
1. Generate a new key
$ ssh-keygen
2. Copy the generated ssh key to the target server(s)
$ cat ~/.ssh/id_rsa.pub | ssh user@target_machine cat – “>>” ~/.ssh/authorized_keys
That’s all there is to exchange ssh keys.
Mount Remote Folder Via SSH Using SSHFS
If you do any kind of web or application development, then you’re used to working with remote servers and systems. You work locally, create test cases and do some kind of qa before deploying to the live system. But what if your qa / test system is also remotely? Wouldn’t it be nice if you could just work as if your files were local and have changes sync automatically? Mounting a remote folder using sshfs makes it possible. (more…)