How to enable SSH server?
#11
Although finding out your local IP is useful, its not needed in this case.

You should be able to connect to the phone via SSH with ssh mobian@local. Of course you have to be on the same network
Proud Owner : 
OG Pinephone 
Pinetime
Pinetab
  Reply
#12
(11-12-2020, 01:43 PM)Joanisc Wrote: For me it was as easy as do:
On Pinephone:
0. Connect to WiFi
1. Get the Ip doing what @pizzalovingnerd  said.
2. sudo apt-get install ssh

On my computer:
ssh mobian@Pinephones IP
I'll add another step:
3. sudo systemctl enable ssh && sudo systemctl start ssh

You don't need to enable, it just makes sure it'll run on boot.
But you need to start in order to use.
母語は日本語ですが、英語も喋れます(ry
  Reply
#13
(01-25-2021, 05:22 PM)ryo Wrote:
(11-12-2020, 01:43 PM)Joanisc Wrote: For me it was as easy as do:
On Pinephone:
0. Connect to WiFi
1. Get the Ip doing what @pizzalovingnerd  said.
2. sudo apt-get install ssh

On my computer:
ssh mobian@Pinephones IP
I'll add another step:
3. sudo systemctl enable ssh && sudo systemctl start ssh

You don't need to enable, it just makes sure it'll run on boot.
But you need to start in order to use.
I followed all of the suggestions in this list, but keep getting  "no hostkey alg" which seems to indicate that there is no key.  Another challenge is finding anything in this forum. Is it me or when I search the forum I get a list of results, but where the term I am looking for shows up in a multipage list is not clear. What am I doing wrong with ssh and with search ? Thanks
  Reply
#14
You should be able to use the instructions for setting up ssh server on Debian Linux. I have mine set up on to only permit key-based login and keep it firewalled off from all but RFC1918 addresses. (Any version of Debian or Ubuntu that uses systemd will be essentially the same for setting up ssh.)

https://wiki.debian.org/SSH

https://phoenixnap.com/kb/how-to-enable-ssh-on-debian

https://linuxhint.com/enable-ssh-server-debian/

https://devconnected.com/how-to-install-...debian-10/
  Reply
#15
(03-31-2022, 08:40 PM)Zebulon Walton Wrote: You should be able to use the instructions for setting up ssh server on Debian Linux. I have mine set up on to only permit key-based login and keep it firewalled off from all but RFC1918 addresses. (Any version of Debian or Ubuntu that uses systemd will be essentially the same for setting up ssh.)

https://wiki.debian.org/SSH

https://phoenixnap.com/kb/how-to-enable-ssh-on-debian

https://linuxhint.com/enable-ssh-server-debian/

https://devconnected.com/how-to-install-...debian-10/

I dont have the foggiest idea of what is going wrong, but this phone and its sofware was going to join a group of satellites poised over the planet at 40,000 miles in stationary orbit. Entering data into a screen where the keyboard needs to be visible to type anything and having the keyboard overlay the area you are supposed to be typing into is but a small example of a source of frustration. The inability to set the passcode because some genius designed the entry fields under the users section to prevent (there is a red line /slider thing) low entropy pins to be entered is yet another reason for creating orbiting pinephones.   Since you have been pretty good answering questions across a broad spectrum, perhaps you can cast some light on this particularly irritating issue.  I have more to vent, but this seems adequate for this round Wink
  Reply
#16
Yeah, this stuff can be frustrating and the on-screen keyboard operation can be aggravating. One possible solution to that if you don't have the accessory hardware keyboard is to use a USB keyboard, though if you don't have a "Convergence" edition phone you'd need to get a suitable USB dock.

Check the permissions on your ssh host keys as it says at the end here. The wrong permissions can cause the "no hostkey alg" error message:

https://askubuntu.com/questions/268272/s...ostkey-alg

(Remember, things like ssh are not specific to the Pinephone. Any info pertaining to recent versions of Debian, Ubuntu, or even Mint are applicable.)

Another thing you could do would be to TEMPORARILY get telnet going so you have a standard-type terminal to work with instead of having to put up with the Pinephone screen and software keyboard. (Since telnet is a simple protocol without encryption dating to the prehistoric, early days of the internet there's not much to go wrong with it.) Then disable/remove telnet once ssh is working. Since telnet has zero security you don't want to leave it running after you don't need it.

https://www.linuxcapable.com/how-to-inst...-bullseye/
  Reply
#17
(03-31-2022, 07:12 PM)parry Wrote:
(01-25-2021, 05:22 PM)ryo Wrote:
(11-12-2020, 01:43 PM)Joanisc Wrote: For me it was as easy as do:
On Pinephone:
0. Connect to WiFi
1. Get the Ip doing what @pizzalovingnerd  said.
2. sudo apt-get install ssh

On my computer:
ssh mobian@Pinephones IP
I'll add another step:
3. sudo systemctl enable ssh && sudo systemctl start ssh

You don't need to enable, it just makes sure it'll run on boot.
But you need to start in order to use.
I followed all of the suggestions in this list, but keep getting  "no hostkey alg" which seems to indicate that there is no key.  Another challenge is finding anything in this forum. Is it me or when I search the forum I get a list of results, but where the term I am looking for shows up in a multipage list is not clear. What am I doing wrong with ssh and with search ? Thanks

If ssh connect is still causing a problem, try: dpkg-reconfigure openssh-server
- RTP

"In the beginner's mind there are many possibilities, in the expert's mind there are few." -Shunryu Suzuki


[ Pinephone Original | Pinetab v1 / v2 Enjoyer ]


Linux Device Privacy / Security Playlist



  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PureMaps and OSM Scout Server maps download biketool 7 4,270 10-04-2024, 04:25 AM
Last Post: vusra
  How to enable ipv6 for hotspot robgadget 1 1,149 04-28-2023, 06:59 AM
Last Post: wibble
  rsyslog a bad idea? Problems with ssh, openssh-server, fail2ban Anna 7 6,354 11-14-2021, 06:20 PM
Last Post: juju
  Keyboard click enable county93 3 3,555 10-07-2021, 04:09 PM
Last Post: county93
  Enable Unstable AndyM 7 7,303 07-17-2021, 07:44 AM
Last Post: dflag84

Forum Jump:


Users browsing this thread: 1 Guest(s)