mount PB filesystem via root ssh

Skip to first unread message

Anton Nikiforov

Apr 7, 2019, 8:39:41 AM4/7/19
to BeagleBoard
I'm trying to mount root filesystem of PocketBeagle from local host with ubuntu 16.04 (with sshfs)  using the following  command:
sshfs ~/mnt/bbb/ ro...@
I also tried to remove root password with guide from
But it didn't help ( only "sudo no password required" is working correctly ). I also tried to change password with passwd command, but
it didn't help either.

Output from terminal with ssh ro...@
ro...@'s password:
Permission denied, please try again.
ro...@'s password:
Permission denied, please try again.
ro...@'s password:
Permission denied (publickey,password). output:
dogtag:[ Debian Image 2018-01-28]
bootloader:[microSD]:[/dev/mmcblk0]:[U-Boot 2018.01-00002-g9aa111a004]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep admin spi tisdk weston-launch xenomai]
dmesg | grep pinctrl-single
[ 1.460238] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568

How can i connect via ssh with root access to Pocket Beagle? Are there some more ways to mount PB root directory ?

Jim F

Apr 7, 2019, 10:47:09 AM4/7/19
Log in as debian, then sudo whatever you need to do as root. If you don't like that, sudo su, and then you will be root and can change its password if you must.

Many systems will not let you log in as root over ssh. It's a bad practice anyway. If you really must you can change that in /etc/sshd.conf following results from a Google search. 

Good luck. 

For more options, visit
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit


Apr 9, 2019, 12:06:02 AM4/9/19
to BeagleBoard
You can log in a debian
sudo passwd

and change the root password. 
in /etc/sshd_config change PermitRootLogin to the following. 
PermitRootLogin yes
restart sshd. 

Next if you are connecting from one debian/ubuntu system to another. 
ssh-copy-id target

That will exchange ssh keys so that you can login SECURELY from that system without providing a password. 

While there is alot of advice about never logining into a system as root, it is significantly more difficult to develop for an embedded product if you have to sudo all over the place. 

Something the products I am working on will not have any network connection when completed. 
I still usually ssh into them while developing. 

Good security practices would mean DO NOT ship a product that allows root logins - particularly remote ones. 

Reply all
Reply to author
0 new messages