mount PB filesystem via root ssh

53 views
Skip to first unread message

Anton Nikiforov

unread,
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...@192.168.7.2:/
I also tried to remove root password with guide from https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#i_take_full_responsibility_for_knowing_my_beagle_is_now_insecure
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...@192.168.7.2:
ro...@192.168.7.2's password:
Permission denied, please try again.
ro...@192.168.7.2's password:
Permission denied, please try again.
ro...@192.168.7.2's password:
Permission denied (publickey,password).

Version.sh output:
git:/opt/scripts/:[ea6ea9fca05f36f5044398884375b0231348d6e2]
eeprom:[A335PBGL00A21750EPB00187]
model:[TI_AM335x_PocketBeagle]
dogtag:[BeagleBoard.org Debian Image 2018-01-28]
bootloader:[microSD]:[/dev/mmcblk0]:[U-Boot 2018.01-00002-g9aa111a004]
kernel:[4.9.78-ti-r94]
nodejs:[v6.12.3]
pkg:[bb-cape-overlays]:[4.4.20180126.0-0rcnee0~stretch+20180126]
pkg:[bb-wl18xx-firmware]:[1.20170829-0rcnee2~stretch+20180104]
pkg:[firmware-ti-connectivity]:[20170823-1rcnee0~stretch+20170830]
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
END

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

Jim F

unread,
Apr 7, 2019, 10:47:09 AM4/7/19
to beagl...@googlegroups.com
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 http://beagleboard.org/discuss
---
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 beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/705af24c-e494-41e9-bb27-5c5ada1594e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dave

unread,
Apr 9, 2019, 12:06:02 AM4/9/19
to BeagleBoard
You can log in a debian
then
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. 
use 
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
Forward
0 new messages