SSH + Porteiner problem

I just migrate my hassio from raspberry to intel nuc with desktop ubuntu 18.4
I followed this guide
I uploaded a snapshot and almost everything seems fine.
I have 2 problems.
I cannot install porteiner (step 8 in the guide) When I enter the command I get the following

root@makis-NUC7PJYH:/home/makis# sudo docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock –v
docker: invalid reference format.
See 'docker run --help'.
root@makis-NUC7PJYH:/home/makis# portainer_data:/data portainer/portainer
bash: portainer_data:/data: No such file or directory
root@makis-NUC7PJYH:/home/makis# sudo docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock –v
docker: invalid reference format.
See 'docker run --help'.
root@makis-NUC7PJYH:/home/makis# portainer_data:/data portainer/portainer
bash: portainer_data:/data: No such file or directory

Can someone tell me what the problem is because I am not familiar at all with linux in general?

My second problem is with SSH addon
I install the addon inside HA and I set a password.
When I try to login with Putty (win10) I set the username as root and when I enter the password I get

login as: root
[email protected]'s password:
Access denied
[email protected]'s password:

Any help on this will be much appreciated

For the first problem you need to run it as a one command. Like this:

docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

You are running portainer_data:/data portainer/portainer as separate command.

You also need to create this portainer_data volume first.

For the second problem you are probably trying to connect over SSH to Ubuntu on your NUC. Set different than 22 port on SSH addon and try connecting using this port.

It’s poor form to ask the same question in two different threads.

Especially when you the eventually get exactly the same answers. :roll_eyes:

It just wastes the time of those trying to help you. I wouldn’t have taken my time to write out the answer I did in the other thread if I knew that @krakers had already answered the question here.

Yes, I know and usually I don’t. It is only that I asked in the other thread in the morning and I didn’t get a response until afternoon, and thought I wouldn’t.
I will try it tomorrow morning and get back with the results.

Thanks, I will try it tomorrow. Can you please tell me how I can create the “porteiner_data volume” please?

Regarding the SSH I tried with the username I gave to ubuntu user (myname - not root) and I did connected.

Now I am trying to find out how which command I should use in order to stop and start HA through putty. In raspberry was the following but I don’t know for ubuntu

hassio ha stop
<wait for ok>
hassio ha start
<wait for ok>

The same way. But you need to connect to HA, not Ubuntu. Like I said, set different port in addon and connect using it. You will be able then to control HA.

For portainer, all the command are on portainer website.

1 Like

I think I install portainer (I don’t know how to use it or even check it yet) and SSH is working

Thank you both. Almost (95%) of my raspberry set up has migrated to my nuc

I added this command before the installation of portainer

docker volume create portainer_data