when you only put the IP address, you are not defining the username of the server, so SSH implies the username of your computer is the same username as the one you want to login with.
So if your username is Paul, and your server does not have that same username registered, it will always fail.
Connor Phillips
yeah i get that dumbfuck
the question is why you don't need the last decimal in the ip address all the time
Elijah Gutierrez
You're also mistyping the IP address in some places. Sometimes you have 192.168.08 (incorrect; could be interpreted as a hostname) and sometimes you have 192.168.0.8 (correct).
Jayden Jenkins
jason@jason-desktop:~$ ssh 192.168.1.2 The authenticity of host '192.168.1.2 (192.168.1.2)' can't be established. ECDSA key fingerprint is SHA256:A2b1Abew0p87P+Cz+wJKi//NW9ojnfOPLgQ+rojj5Zk. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.1.2' (ECDSA) to the list of known hosts. [email protected]'s password:
Nathan Smith
YES BUT IT WORKS WITHOUT THE DEICMAL AT THE END SOMETIMES LOOK AT THE SCREENSHOT
Anthony Thompson
Stop yelling, dingus. What happens when you ping 192.168.08? Post a screenshot of that.
Jaxon Nguyen
ssh [email protected] Doesn't work, though; not even once in your screenshot.
Oliver Evans
...
Jason Nguyen
.
Nathan Lee
I mean 192.168.04 works but not 192.168.08
I don't understand why the decimal matters sometimes and sometimes not.
I understand that adding the decimal is the right way to do it, but I want to know why it will work without it
Henry Jenkins
Okay, so we've now established that 192.168.08 is a hostname on your network.
Is the IP address of the machine you are pinging from 192.168.0.8? And are you on a Mac (it looks like it from the nice font rendering)?
Blake Diaz
yeah im on a mac
yes the ip address of the machine is 192.168.0.8
Adrian Barnes
Type hostname. What do you get?
I'm assuming one of two things are going on here: 1 - Your computer's hostname is 192.168.08 2 - You have 192.168.08 defined in your hosts file and it's pointed at 192.168.0.8
Just using 192.168.08 as an address is invalid, unless something has been setup to make it work (like a hostname). There are tons of ways to implement this, though.
James Long
Just Mac things.
Josiah Sanders
From what I understand it appears that every computer on my network accepts that ending without the decimal EXCEPT the raspberry pi. I think that it's probably a weird hostname thing...
ok thanks
also i made a small mistake the machine im pinging from isn't 192.168.0.8 its something else
the raspberry pi is the machine with 0.8 and its the only one which wont accept being pinged from the abbreviated ending.
Ian Gonzalez
You dumbfuck. 192.168.0 is your local network name and the last decimal is for local machines. When you don't put the fourth byte, it automatically connects you to the lowest machine that has port 22 open or whatever machine that's being forward to port 22 in your router rules. Stop yelling and use wikipedia you dumb cunt.
Henry James
oh cool can you link the article
Carter Jones
rude
Julian Harris
>mac how unsurprising
Leo Adams
And yet again, another useless shitskin gets told on Sup Forums. Worthless trash.
Cooper Rivera
That's not how it works. If you put in three of the four octets then it assumes that the third octet is the fourth and places the 0 in the third.
It appears to only be an issue with a leading 0. 192.168.8 will work, 192.168.01 - 192.168.07 will work, but 192.168.08+ does not work.
Oliver Lewis
Holy fuck you're retarded
Cooper Smith
> this is kind of odd it defaults to the ip 3 spaces before it
Jackson Clark
Yea, I just came to that conclusion too on when I just took a shit.
With a leading 0 it converts to counting in octal.
Cooper Jones
Because it's using inet_addr() and all the brain-deadness that entails. The leading 0 means that portion of the address is interpreted in octal. 8 is not a valid octal digit.
INTERNET ADDRESSES Values specified using the `.' notation take one of the following forms:
a.b.c.d a.b.c a.b a
When four parts are specified, each is interpreted as a byte of data and assigned, from left to right, to the four bytes of an Internet address. Note that when an Internet address is viewed as a 32-bit integer quantity on the VAX the bytes referred to above appear as ``d.c.b.a''. That is, VAX bytes are ordered from right to left.
When a three part address is specified, the last part is interpreted as a 16-bit quantity and placed in the right-most two bytes of the network address. This makes the three part address format convenient for specifying Class B network addresses as ``128.net.host''.
When a two part address is supplied, the last part is interpreted as a 24-bit quantity and placed in the right most three bytes of the network address. This makes the two part address format convenient for specifying Class A network addresses as ``net.host''.
When only one part is given, the value is stored directly in the network address without any byte rearrangement.
All numbers supplied as ``parts'' in a `.' notation may be decimal, octal, or hexadecimal, as specified in the C language (i.e., a leading 0x or 0X implies hexadecimal; otherwise, a leading 0 implies octal; otherwise, the number is interpreted as decimal).
Tyler Cruz
I came here to help you but you're a rude cunt user, get fucked
Austin White
false
correct
Parker Ross
255.255.255.255 ff.ff.ff.ff 0xffffffff
Christian Allen
>Helping anyone on 4turd >Not intentionally tricking them into destroying their life or their equipment It's like it's actually your 1st day
Austin Mitchell
Wew edgy
Jose Lewis
Actually I, , wasn't fully correct.
>If you put in three of the four octets then it assumes that the third octet is the fourth and places the 0 in the third. If you only put three octets then the third is counted as 16 bits instead of 8 bits and fills accordingly, so the third value could be anything from 0-65,535 and will determine the contents of the last two octets.
Example, ping 172.16.4116
Pinging 172.16.16.20 with 32 bytes of data: Reply from 172.16.16.20: bytes=32 time
Wyatt Rogers
This entire thread explains a lot about the current state of Sup Forums, and the growing presence of roleplayers.
Eli Peterson
What is this visual AIDS
Noah Turner
>you can type 127.1 instead of 127.0.0.1 >you can type 10.1 instead of 10.0.0.1 woah really made me think about my computer degree
Gavin Harris
The only thing you have to remember in that case is that the second digit is 24bit instead of 8. It's really just a denotation difference.
The cool thing, as pointed out in , is that on a large network you can basically give every device a four or five digit number that corresponds to their address on the class B or A network, so from a helpdesk point of view when someone calls up you can just say "what's the number on the machine?" and get four digits and that's all you need for the IP address.
Colton Garcia
If only the company I work for weren't retarded
Jaxson Moore
Wtf is this shit. I don't eben. Please learn networking 101. IPv4 needs 4 octets...