Hot answers tagged

2

For the public key authentication to work, your public key (id_rsa.pub) must be appended to ~/.ssh/authorized_keys for the target user. How you're going to get it there is none of SSH's business - you have to figure it out yourself. You can use any medium you wish, as long as it guarantees integrity (ie. recipient can confirm that what they have received is ...


1

So, I generate a ssh key, and I have a nice ./ssh/id_rsa and ./ssh/id_rsa.pub and now I am suppose to copy it on my friend's computer ? Yes, specifically, you're supposed to copy your ~/.ssh/id_rsa.pub file (the public key) to the remote system's ~/.ssh/authorized_keys file. (Although, you really ought to have your own user account on the target machine, ...


1

There is a method called port-redirecting I read about multiple times in the internet. But noone really explained that one easily. On most routers, allowing external access to an internal IPv4 host is literally the same function whether the port needs to be changed or not. If your Raspberry Pi has a private IP address, the router has to perform NAT anyway, ...


1

Addition to the accepted answer, for future readers/future reference: If you want to visualize a constantly-updated log the way described in the question, you can either do: less +F -S access.log It will then be in "tail -f mode", showing Waiting for data...(interrupt to abort)". To quit this mode, you can do CTRL+C. Another way is to do: ...


Only top voted, non community-wiki answers of a minimum length are eligible