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/ email@example.com:/** 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](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 firstname.lastname@example.org**: email@example.com's password: Permission denied, please try again. firstname.lastname@example.org's password: Permission denied, please try again. email@example.com'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 ?
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.
You can log in a debian
and change the root password.
in /etc/sshd_config change PermitRootLogin to the following.
Next if you are connecting from one debian/ubuntu system to another.
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.