I installed Virtual Box
on my Linux
OS, in the Virtual Box, I created another Linux
OS, which has a user called "dvader", I want to SSH from my local Linux OS to the Linux OS on Virtual Box, I used the command below:
$ ssh -p 2222 dvader@localhost
But I always got the error:
ssh: connect to host localhost port 2222: Connection refused
Anyone knows how to solve this problem? Thank you in advance.