port 22: Permission denied on raspberry 3b - raspberry-pi

I have installed the 2017-11-29-raspbian-stretch on raspberry 3b, and created a file named ssh in boot directory in SD card, then connected mac with raspberry with an Ethernet cable, I have also turned on Sharing from wifi to Ethernet on mac, but when I wanted connect with raspberry with ssh ssh pi#192.168.2.255 it says "ssh: connect to host 192.168.2.255 port 22: Permission denied".
I have no HDMI cables, what I should do to connect using ssh without visible devices?

It turned out that the Ethernet cable is broken...
Sorry for this question.

Related

SSH Raspberrypi4 on usb connection

I am having trouble connecting to my raspberry pi.
I followed something similar to this tutorial https://howchoo.com/pi/raspberry-pi-gadget-mode
After doing so I found my raspi's ip address to be 224.0.0.251 using arp -a on the terminal. However it seems that I cannot ssh as it gives this error: "Address family not supported by protocol family"
What can I do to ssh my pi?
Because it is a Raspberry Pi 4, it should be able to connect wirelessly over SSH. This is the official documentation for how to do that. https://www.raspberrypi.com/documentation/computers/remote-access.html

No SSH on headless Raspberry Pi Zero 2 W first boot

Following the instructions at Alpine Wiki - Raspberry Pi - Headless Installation
I was able to get the Pi to boot up and connected to WiFi. I am able to ping it from my laptop, but not able to SSH into it as root. I keep getting the ssh: connect to host <raspberry-pi-ip-addr> port 22: Connection refused error.
Scanning with Nmap shows no ports are open.
How do I get the SSH server to run?
Or at least enable logs and write to SDCARD such that I can look at what is going wrong.

Unable to connect to Raspberry Pi via a Ethernet connection

I've purchased a RaspberryPi 3 B+, booted a NOOBS Raspbian and I've been trying to open a ssh connection via an Ethernet connection for the last couple of days. My goal is to be able to access the Pi via ssh while also sharing my Wifi connection to the Pi. My machine is running Ubuntu 18.04.01.
So far I've tried creating a new Profile for the Ethernet connection but without success. The only way the connection can be "successfully" created is by checking the "Link-Local Only" box, which will add "169.254.154.221" to my IP addresses. However, the Pi can't be found on the local network (pinging raspberrypi.local fails and an nmap scan doesn't return any good results).
Also, when I was first trying to connect the Pi, I was able to see it by executing "arp -a" in terminal, but now it is gone.
I've also tried connecting the Pi to my friend's Macbook and the Pi gets a local IP address, but it is still not possible to share the laptop's internet access to the Pi.

Putty gives "Network Error: Connection time out" while connecting to raspberry pi 3 using router in windows

I am using D'link rouer DSL-2750U. I have installed raspbian jessie in Rpi 3 and connected it to router. Connected my laptop to router wifi. But when i try to connect putty using the IP address of raspberrypi which i have got from router admin panel it gives connection time out error. Also i have tried to adjust keepalive seconds in putty connection setting and enabled X11 forwarding.
I recommend you to check if ssh is enabled in your device:
sudo raspi-config
then navigate to ssh, hit Enter and select Enable or disable ssh server. Now reboot raspberry and try again.
Please Open you RaspberryPI terminal and run the command "sudo service ssh restart". Try connect again from putty
For everyone who is getting a network error from Putty even all of their network settings are okay, you just follow a single step:
Just go there in Connection and set the time for 10 sec or more.

How do I connect my Raspberry Pi 3 running Android Things to a wifi network?

I have flashed my Raspberry Pi 3 with the Android Things image, I have not been able to connect it to my wifi network. I have run adb devices but I get no response.
Take a look at this question: connect to Raspberry Pi 3 using adb
The Raspberry Pi isn't a USB device, the USB connection is just for power, so it won't show up in adb devices. You have to connect it to a network first then use adb connect.
In short, you have to connect it to network using Ethernet and then follow the instructions using adb command to connect it to Wifi. Yeah, I know it is dumb but it is just the way it works at the moment.
And adb devices won't show anything until it is connected with TCP. RPi3 won't work as a USB slave device.
Check the details here and other stuffs.
http://pierrchen.blogspot.com.au/2017/01/a-hands-on-of-android-things-on-rpi3.html
If you are trying to connect to wifi, you can connect your pi with a laptop through USB to TTL module, after that you can use putty to run the following
am startservice \
-n com.google.wifisetup/.WifiSetupService \
-a WifiSetupService.Connect \
-e ssid YOURWIFINAME \
-e passphrase YOURWIFIPASSWORD
if you do it successfully you should be able to see your pi's ip address after running:
ifconfig wlan0
like this:
inet addr: 192.168.1.104 Bcast: 192.168.1.255 Mask 255.255.255.0