I am here because I've found different problems setting up SSH using this guide proposed in this other question.
First of all I've a computer (I want to use it as master) called: timmy@timmy-Lenovo-G50-80
. My other computer is a Virtual Machine always with linux mint called: test@test-VirtualBox
and I'd like to use it as a slave.
What I've done until now is:
install needed packets (both PC):
sudo apt-get install openssh-server openssh-client
Change inside the file
/etc/ssh/sshd_config
: (Only master)- the port of server from
22
to2222
- set
PubkeyAuthentication yes
(so no change) - remove comment at line:
Banner /etc/issue.net
- the port of server from
STOP
I am stuck when I've to execute this command:
ssh-copy-id username@remotehost
I imagine, reading what's written, that I've to execute something like:
ssh-copy-id timmy@timmy-Lenovo-G50-80
but:
- from timmy@timmy-Lenovo-G50-80 everything goes OK, I can connect to myself (not what I actually want)
- from test@test-VirtualBox it tells me
ERROR: ssh: Could not resolve hostname timmy@timmy-Lenovo-G50-80: Name or service not known
Finally, what I've to do in order to connect these 2 PC?