RasPi SSH Not Working - ssh

I'm using Mac OS X and trying to SSH into my pi. I have the pi boot up in front of me, and I can see that the IP address is 192.168.0.13.
However, if I ping the router on the A Record address I assigned to it, it responds.
When I boot the Raspberry Pi up, it showed:
My IP address is 192.168.0.13
Raspian GNU/Linux 7 subdomain.domain.com tty1
subdomain login:
I was surprised that it showed the subdomain and domain on login (I'm a Linux newbie).
Ever since i set up the subdomain to go to my pi and set up the port forwarding and firewall exceptions on my router, I never really used the pi itself, I always SSH into it. It stopped working for the past week for some reason. There's nothing I installed recently except nginx, but that shouldn't affect it right?
Any troubleshooting advice? Can't seem to find anything newbie-friendly online.
Will be more than happy to provide more information, as I think I haven't provided enough here but don't know what else to add!
Many thanks in advance :)
EDIT: I was pinging the incorrect address! It's ...0.13 not ...1.13 :) Apologies!

Related

xampp - site only works when connected to my wi-fi network

I've recently set up a personal website for prorgams I make and set it up over at www.ioi-xd.xyz. The website looks fine when connecting on my computer or when accessing it over wi-fi. However, I've seen friends who aren't on my wi-fi having trouble with the site, and after attempting to access the site on a phone that isn't connected, I can confirm that the site only works when connected to my wifi.
I am running XAMPP v 3.2.2, with Apache 2.4. My port is :80 and my SSL is :4433. I have tried uninstalling and reinstalling XAMPP, to no avail. I've also disabled my firewall completely, including my domain network. Nothing I do seems to work though.
Found the answer myself. Wasn't aware of this so I might as well post this for those scratching their heads like I just was an hour ago.
Most ISPs block the ability to host sites on wi-fi. This isn't something (at least that I'm aware of) that you can change. You will have to use a website host such as Hostinger.

Why can't my friends access my website built with Apache2?

So, I have been building this website with HTML and I decided to host it with on Apache2. It runs on an Ubuntu and me already changed the VM assigned Ip, which is 10.2.0.15, into another one. I can access it on the Mac where the VM is, but I asked my friend if he can open it, and he said it was a 404 Server not found error.
Please help!
You probably need to enable port forwarding:
https://www.howtogeek.com/122641/how-to-forward-ports-to-a-virtual-machine-and-use-it-as-a-server/
You haven't indicated what VM software you are using, but the above is for VirtualBox. VMware is a bit different. Also make sure your router is not blocking any packets or any firewall.

Cannot remote into raspberry pi via hostname

Let me start by saying that I have no experience with Linux and this is my first attempt at getting into the IoT with a raspberry pi3. My question is why can I connect via ssh to my pi when I use the ip address but not the hostname?
After getting everything set up at home, I tried to remote in via PuTTY from my laptop. (The laptop is less than 6 months old and if I need to provide the specs on it, I can. It is running windows 10 if that matters). It worked when I entered the ip address of the pi, but when I tried again with the host name (which is clearly defined in the raspberry pi configuration) it said host does not exist. I used hostname.local and still failed.
Today, I brought the whole setup to work to try a few more scenarios. From my work desktop, which is running windows 7 and not wireless, I could remote in via hostname.local. I then tried again on a different laptop running windows 7 and it worked too. Next attempt was on another new (less than 3 months old) laptop running windows 10 and it failed to remote in via the hostname.
This would tell me that there is nothing wrong with my home network or the network at work, and it also makes me think that this has nothing to do with the pi, since other computers can resolve the hostname to the ip address and successfully login. What the hell am I doing wrong or missing?
I spent 2 nights googling and browsing forums trying to find an answer for this but cant, so instead of bashing this post, please poke me for more information you think might be helpful for a solution.
EDIT I gave my computer and PI to my cousin to fix. He installed Samba, though I don't know what it does differently. After doing more research, it sounds like the problem I was having was a DNS issue. I don't know how it was resolved by downloading samba on the pi, but I can now connect via the hostname.
So if I understand correctly it would appear that there is some particular settings on that laptop preventing you from using SSH if that is the only thing you are changing? I think this is likely to be something to do with the security settings on the laptop but Windows isn't my thing sorry.

Raspberry pi on remote network (all done works are mentioned in details)

Firstly,here, I will mention all what I did to make raspberry pi as a web server or as a data cloud. But all the issues which were applied did not work. There are some problems in somewhere , but I dont know where, what , how.. ?
So let me start.
Firstly,I booted my raspberry pi with Raspian OS. It works in a best manner for sure.Then, I installed ntfs-3g to make it possible to read my hard drives by raspberry pi.
When I connected my hard drive (500 GB), raspberry pi went crazy,it freezed and so on.
I have two hypotheses. One of them , maybe hard drive could be so huge for raspberry pi to read and it could take lots of time to read.
But someone could do with 1TB hard drive. So this one is dead!
Another hypothesis is that hard drive is formatted with NTFS. Maybe it could be problem.
At first, I booted raspberry pi from a usb storage and when I connected that hard drive, raspberry tried to boot itself from hard drive, not from usb.That's why this is one another hypothesis. I havent disproved this yet. But i will and let you know.
Although I could not connect my hard drive to raspberry pi, I gave a break to that issue and I tried to create a connection from remote network to my raspberry pi.
I made raspberry's IP as a static. I could connect it from ssh and file zilla(ftp) LOCALLY. I disabled firewall of my router and observed my router's external IP. It has not changed for many days although I dont have a static external IP. Then, I arranged my port forwarding like these
"router_external_IP":8080 destination(raspberry's internal IP) is 22 (for SSH)
"router_external_IP":9000 destination(raspberry's internal IP) is 80 (for HTML)
"router_external_IP":8500 destination(raspberry's internal IP) is 3306(for mySql)
When SSH server and Mysql server ran on the raspberry pi, I tried to connect to raspberry pi
by SSH with "router_external_IP":8080 (from putty)
by browser with "router_external_IP":9000
by browser with "router_external_IP":8500
NO ONE WORKED :( ! [By the way, I installed web servers on it, but i did not mention]
Someone can say that "Are you sure about ports are open ?".
Yes I am sure I checked it out. But I am not sure on my router are forwarding these ports to raspberry pi or not . Also, I can not debug it.
Actually, I have 2 hypotheses on that also.
First one is that maybe router does not forward these ports to raspberry pi.
Second one is that maybe I am doing something wrong and that is why although router forwards all given ports to raspberry, raspberry can not respond.
I can not disprove these since I dont know how to debug.
I do not know what to do. I just got lost. Please help me on these issue.
An easy way to check if your router is forwarding your ports is to check them at: http://canyouseeme.org . If, as you say, all your ports are open on your internal network, if "canyouseeme" can't see your services then you know you need to tweak your router settings.

How to configure VMware workstation for VHD

I am able to hook SharePoint 2010 VHD with vmware. The central admin comes up but port 80 dont even come up. I ran into this http://blogs.msdn.com/b/steve_fox/archive/2010/06/15/rtm-demo-vm-for-sharepoint-amp-office-2010.aspx article but I dont know to perform this in VMWare Station 8. Please suggest.
Ping localhost host gives 127.0.0.1. But I get 404 both on localhost and 127.0.01
Ping to intranet.contoso.com takes a long time and i get request could not find host ....
Binding looks good too.
I am not seeing anything in IIS log . I mean nothing specific to intranet.contoso.com.
Looks like a DNS Issue to me. Try to add intranet.contoso.com to the hosts file as:
intranet.contoso.com 127.0.0.1
If this works then it is definitely a DNS issue, check if the service is running.
Also check if you actually assigned a virtual network card to the box in VMWare.
Update: To add NIC to VM Ware you edit machine settings and add hardware, add a network card as bridged. You can then manage the network card normally inside Windows.