Questions tagged [ssh]

SSH (secure shell) is a network protocol to provide encrypted communication using a client-server architecture. Question include the configuration of the sshd server on the Pi.

322 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
1 answer
1k views

How to start xorg on a physically connected display via SSH?

The pi is configured to start into text mode so that no xorg libraries are loaded during normal operation. Yet I would like to be able to occasionally run an xorg desktop session when connected to an ...
ccpizza's user avatar
  • 431
4 votes
2 answers
2k views

Can't access command line of Raspbian/Kodi on boot by pressing ESC

I can't get to the command line by hitting Esc on reboot when prompted. Kodi version from the settings screen is "Compiled: Feb 2 2015)". I can't SSH in because my RPi isn't getting DHCP renewed on ...
john's user avatar
  • 209
3 votes
1 answer
419 views

How to use MATLAB at host PC with Raspberry Pi

I'm trying to connect MATLAB with raspberry pi 2 b+. have already instlled the raspberry pi addon on MATLAB at the host LAPTOP. The configuration - Matlab(Host LAPTOP)-<---->ETHERNET<---->...
Digol's user avatar
  • 173
3 votes
0 answers
492 views

How can I fix hanging SSH on Raspbian?

When I log in through SSH on my Raspberry PI 2 i can work for a couple seconds then the connection breaks. I get the error: packet_write_wait If I pin the host I get something like: Request timeout ...
mgPePe's user avatar
  • 151
3 votes
0 answers
377 views

Using Pi 2 as a media center AND git server

I would like to use my Raspberry Pi 2 mainly as a media center but also as a private git server for small projects like LaTeX documents. My goal is to be able to set this server as a remote repo to ...
Niclas's user avatar
  • 131
2 votes
0 answers
509 views

Cannot SSH to headless RPI Zero W via USB

I am unable to access my RPI Zero W v1.1 with SSH through USB. I'm using a fresh install of the RPI OS Lite 32 bit version through the official Imager (1.7.4), with a custom username/password, custom ...
HelpMeGame's user avatar
2 votes
1 answer
227 views

SSH via PuTTY Remote Forwarding Setup

I was trying to set something up so that I can SSH into my Raspberry Pi 4B from anywhere via remote forwarding. To do this I wanted to use PuTTY, specifically, I wanted to add a new forwarded port. ...
magnetosticker's user avatar
2 votes
1 answer
973 views

Automatically add ssh keys to ssh agent on Raspberry Pi

I want to access GitHub via SSH. I have created a passphrase protected SSH key which I want to add to the ssh-agent on login. If I add a SSH key to ssh-agent via command ssh-add ~/path/to/key </dev/...
Sudhir Singh Khanger's user avatar
2 votes
1 answer
381 views

SSH disconnects after ~10 mins and can't reconnect

After around 10 minutes of starting up my Raspberry Pi (Model 4b) and being SSH'd into it, it freezes. If I try to reconnect I just get connection timed out. I've connected it to a monitor and it ...
JaAnTr's user avatar
  • 121
2 votes
1 answer
458 views

Running framebuffer application over ssh with display on TFT

I've got a RPi 2 running Raspi OS 2020-12-02 with Adafruit 3.5" TFT display - the display is configured correctly and displays console messages and as well can display images, for example when I ...
MLu's user avatar
  • 151
2 votes
0 answers
1k views

Getting "has no 'x' member errors" for Rpi.GPIO using vscode remote ssh extension

I just set up my raspberry pi and have been using vscode (remote - ssh extension) on my windows computer to code on there but I have been getting errors like "Module 'RPi.GPIO' has no 'output' ...
Juan's user avatar
  • 21
2 votes
0 answers
182 views

The Raspberry Pi 4 fails to reboot

I have a Raspberry Pi 4 running Ubuntu Server 18.04. I usually SSH into it and reboot the system. However, I noticed that sometimes the pi does not successfully boot up again after shutdown, so I have ...
Faisal Altassan's user avatar
2 votes
0 answers
218 views

Why can I SSH in to my Pi, but can't access the network from it?

I recently re-arranged my home office, which required unplugging my router and Raspberry Pi 3 (among other things). Despite changing nothing besides the ethernet cable, I am now encountering the ...
Colin Strong's user avatar
2 votes
0 answers
74 views

Unable to connect SSH between two Raspberries over Internet

I have a raspberry at home with SSH server, RSA keys configured and port 22 open on the router. I have another Raspberry Pi (client), with which I can connect to my house ONLY by LAN (with ssh from ...
Tipoduro's user avatar
2 votes
0 answers
82 views

Raspberry Pi Jsch Diconnect Handler

I am using Android Studio "Jsch" package to connect my Android Device to my Raspberry Pi via SSH. The Event "on press" sends a command,which executes a Python file on my Raspberry Pi. This File turns ...
Paraton44's user avatar
2 votes
0 answers
70 views

Issues connecting Raspberry Pi 1B+ with RISC OS to laptop

I've been trying to connect my Raspberry Pi 1B+ to my laptop as it is usually done (HDMI, Ethernet cable and USB with power adaptor) and I can't find it on my computer (laptop with Ubuntu 19.04). I ...
Héctor Iglesias's user avatar
2 votes
0 answers
196 views

Using Pi to bridge two networks through SSH tunnel

TLDR: How to route SQL traffic through a reverse VPN tunnel on a Win10 client to an outside network. I'm hoping I can get some clear advice / tips on this desired setup. I'm looking to access an MS ...
Tom's user avatar
  • 21
2 votes
1 answer
3k views

Trying to get SSH over USB to work (Raspberry pi Zero W)

I'm trying to connect to my Raspberry Pi Zero W using SSH over USB. I've seen other people do it, and I have tried multiple different tutorials over the last few days, but none of them worked. I've ...
DaMightyZombie's user avatar
2 votes
0 answers
718 views

Raspberry Pi Zero -V1.3 Kali-SSH VNC through USB connected to PC possible?

I would like to SSH and VNC to a rasberry pi Zero V1.3 (Non-wifi) running Kali using just the USB connected to a Ubuntu that is connected to the network. It is possible with Raspbian: https://www....
user759603's user avatar
2 votes
0 answers
1k views

Trying to use Ethernet over Bluetooth between Pi boards

I'm trying to use SSH over Bluetooth via Ethernet over Blutooth. I've based my effort thus far on: Bluetooth PAN Network Setup with BlueZ 5.X I believe I have faithfully followed the instructions. ...
jski's user avatar
  • 141
2 votes
0 answers
1k views

Can't enable ssh for first boot because latest Raspbian image boot partition is read only

I'm trying to set up my Raspberry Pi headless from my MacBook. However, when I flash the latest Raspian image (April 2018 version), the resulting boot partition has a read-only file system. I've tried ...
johnpaton's user avatar
  • 121
2 votes
0 answers
59 views

Failure to download file with sftp

I Raspberry Pi 2 as a Torrent Box. I recently attach to it an external usb HDD formatted in NTFS. I can download successfully any file in the hardisk but when I try to connect to my Raspberry with ...
DarkSkull's user avatar
  • 121
2 votes
1 answer
1k views

SSH into Pi working as wireless bridge

I have a Raspberry Pi 3 that I have set up as a wireless bridge. I have a static IP on the ethernet port of 192.168.0.20, and a static IP on the bridge of 192.168.0.30. The Pi is running headless, so ...
millercb's user avatar
2 votes
0 answers
3k views

Remotely unlocking LUKS encrypted Raspbian

I encrypted Raspbian using aes-cbc-essiv:sha256 algorithm with 256-bit key using LUKS and configured it to remotely unlocking. I followed these tutorials: https://learn.adafruit.com/resizing-...
user avatar
2 votes
0 answers
586 views

RMATE not working to ssh raspberry pi files to sublime

I've followed all the instructions on this site. https://coderwall.com/p/mioruq/edit-remote-files-with-sublime-text-over-ssh-with-sudo-too But it is not working. I don't get any errors when I ...
Caspar B's user avatar
2 votes
0 answers
237 views

Raspberry Pi, SSH, USB MOUNTS, and LINKS

Status Quo : On my WIN7 laptop, I have created a managed drive path from a USB stick (512MB, white Elago) that mounts to an empty NFS directory, say, C:\USB-KEY. In that path (could) exist a file, ...
user1166392's user avatar
2 votes
0 answers
518 views

Cannot mount raspberry pi's sd card

My raspberry pi was working fine yesterday. Today, I could not ssh into it. I do not have an hdmi screen, so the first thing I tried was taking out the sd card and putting it in my computer. The Disks ...
Marcel's user avatar
  • 123
2 votes
0 answers
111 views

No-IP + extenal IP not even pinged

I set up my RPi using no-ip with this video. Locally I can access SSH at port 22 as normal. But when using my external IP or my NOIP from a mobile connected to 3g with the 22 port forwarded it does ...
trelozakinthinos's user avatar
2 votes
0 answers
1k views

ssh: connect to host "raspberry pi IP address" port 22: Operation timed out

I have seen this question in multiple places while I searched on Google, but none gave an answer on how to bypass this issue, and I think it will help me and many others to finally know the answer. My ...
Phi's user avatar
  • 129
2 votes
0 answers
347 views

sshd not always available

I just updated my old Pi to a new Raspbian image from 6/20/2014. It seems that ssh is extremely flaky now. When I'm on a terminal on the actual Pi, all network access seems to work just fine. ...
brianz's user avatar
  • 121
2 votes
0 answers
1k views

Can't connect to Raspberry Pi with Ethernet

I've configured my Raspberry Pi so I can connect to SSH, and the first few days it worked flawlessly. Now yesterday and today, I couldn't connect to it so I tried to ping it. I kept getting: ...
user104289's user avatar
2 votes
1 answer
787 views

Cannot connect to Raspberry Pi via SSH from Linux

I just got a fairly old model of Raspberry Pi (Model B with 512MB RAM). As I don't have an extra keyboard or screen, I'm trying to hook it up via ethernet with my laptop. I copied a Raspbian image to ...
Lumi Wang's user avatar
2 votes
2 answers
2k views

WiFi network disappeared?

I set up my RasPi 4 as a WiFi Access Point according to this guide, and it worked - I could see the SSID in the list of networks, and join the WiFi network, and connect using ssh, but only for a brief,...
Thomas Capogreco's user avatar
1 vote
1 answer
74 views

weird behavior of raspberrypi.local: work well after reboot windows but after suspension stop functioning

I'm very confused, it's been a week since I'm encountering this problem. I can reach and connect to my raspberry from raspberrypi.local if I reboot or after shutting down and start again my computer ...
Marco's user avatar
  • 11
1 vote
0 answers
101 views

no consistent connection when using RBP as Ethernet gadget on macos

I am trying to connect my RBP to my MacBook using Ethernet gadget. I followed this guide link, I also had to share internet to the RNDIS/Ethernet Gadget. I managed to SSH to my RBP and to access ...
Pa Dalton's user avatar
1 vote
3 answers
411 views

Unreliable raspberrypi.local connection solution

I am using a Raspberry Pi Zero 2W for some development, and am having trouble with headless operation through SSH. The usual method is via "ssh [email protected]". This is on and off ...
Daniel Godø-Dempsey's user avatar
1 vote
0 answers
105 views

Raspberry Pi 4: Black screen after boot both local and via vnc

I have a Raspberry Pi 4 that I have had running for at least half a year as a Plex server. I used Raspberry Pi Imager to create the os, and then I connected via vnc from either my mac or my pc, the ...
Steffen Beth's user avatar
1 vote
0 answers
30 views

Port forward fails on high data traffic, how can I fix it?

I wanted to test the bandwidth over port forwarding via iperf: On the first terminal: ssh myraspberry -R 5001:localhost:5001 -L 5002:localhost:5001 On the second terminal: iperf -s On the third ...
ceremcem's user avatar
  • 287
1 vote
0 answers
139 views

Raspberry Pi Zero W SSH: `client_loop: send disconnect: broken pipe/timeout/Connection reset`

I am using a Zero W for Environmental Data Logging. I am using a 3A rated power supply. The device itself is exclusively used remotely via ssh or VNC. For both cases, I am spontaneous losing ...
Paschl's user avatar
  • 11
1 vote
0 answers
73 views

Rasberry Pi 4 Nextcloud Sever goes down and stops responding to SSH after a while ping still works

My Rasberry Pi 4 running my Nextcloud Server sometimes just stops responding to everything except pings after a while, force rebooting it (disconnecting and reconnecting the power) temporarily fixes ...
KeinNiemand's user avatar
1 vote
0 answers
329 views

ssh error : kex_exchange_identification: read: Connection reset

I am new to Pi and using the command line. I am trying to set up my Pi headless connected to my iPhone hotspot, I have downloaded the Raspberry Pi Imager on to SD card and used it to enable SSH and ...
BeatriceD1995's user avatar
1 vote
4 answers
714 views

Rpi3B+ ssh session drops randomly

I have a Raspberry Pi 3 Model B Plus Rev 1.3 in my Ethernet network that runs headless with octoprint and an arduino pro mini connected to it via i2c. Wifi is disabled. The Rpi is powered from an ...
thermike's user avatar
1 vote
0 answers
378 views

VLC doesn't show video when opened from SSH

My VLC isn't displaying the video stream when I open it in an SSH session. The audio works fine, but video doesn't. The video does work under the following circumstances: Opening vlc using the mouse ...
Gonzo's user avatar
  • 111
1 vote
0 answers
129 views

Access remote `/dev/input/` on local machine

My robot needs to read input commands from a USB joystick which is physically connected to a remote desktop (Ubuntu). On desktop, the joystick is available for local user with permissions: crw-rw-r--+ ...
zlg's user avatar
  • 51
1 vote
0 answers
588 views

"cannot currently show desktop"

I was working on installing maven on my raspberry pi3b+ and when I rebooted it, it asked me to enter my password again. Upon entering the password a message pops up: Cannot currently show the desktop&...
Aishwarya Kanchan's user avatar
1 vote
0 answers
408 views

Can not see Pi Zero on my network

I can't seem to find anything on here already with the same case so I'll go ahead and ask. I am trying to connect to my pi via SSH, but I can not see the pi on the network. I have: Flashed the SD ...
Lane George's user avatar
1 vote
0 answers
262 views

Website behind Firewall: How to SSL through a Reverse SSH Tunnel?

I have a website (Apache) hosted on my RasPi behind the apartment's firewall. A reverse SSH tunnel is established between the RasPi and a cloud server outside for port forwarding. The site's domain ...
UM-Li's user avatar
  • 13
1 vote
0 answers
66 views

Is it possible to enter USB-C Gadget Mode using only dhcpcd?

I've been following tutorials like this one to make USB 'Gadget Mode' work on the Pi: https://www.hardill.me.uk/wordpress/2019/11/02/pi4-usb-c-gadget/ However the other day I had an issue getting it ...
user1026169's user avatar
1 vote
0 answers
116 views

Getting PC hardware info through pi zero

I am trying to get some info about the hardware on my PC through my pi zero for example CPU temperature and RAM speed etc. I have connected my pi zero through a single usb cable into my PC (I am able ...
WoJo's user avatar
  • 11
1 vote
0 answers
240 views

Why does SSH on Raspberry disconnects when USB 3.0 is connected?

Hardware: Raspberry PI 4B. Connected to the Chinese adapter 5V - 3A. OS: Ubuntu 19.10 (GNU / Linux 5.3.0-1022-raspi2 aarch64). The situation is this: when I connected to the raspberry over SSH, I ...
Danij's user avatar
  • 11

1
2 3 4 5
7