Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 30, 2013, 10:30 PM   #1
norcal707
macrumors newbie
 
Join Date: Jan 2013
SSH help!

Super new to this whole ssh thing ive just recently been looking into it and its really interesting.

I was trying to just learn how to actually give another computer commands and have already encountered a problem.
using guides found online i have open a terminal and made sure both computers had remote login checked, port 22 is open but we are on a huge network, a university wifi that thousands of students use.
when prompted for the password i type it in and it has me repeat that three times before finally giving me permission denied (publickey, keyboard-interactive)

ex. ssh username@####
Password:
Password:
Password:
Permission denied

I was wondering because the server houses so many people it is timing out before it can find the ip?
let me know if this is in the wrong section I am just brand new to this and would really like to learn more about it, any links to guides would be greatly appreciated.
norcal707 is offline   0 Reply With Quote
Old Jan 30, 2013, 10:34 PM   #2
Intell
macrumors P6
 
Intell's Avatar
 
Join Date: Jan 2010
Location: Inside
You're getting that error because you're either putting in the wrong password or that user doesn't exist on the server or the user doesn't have remote access allowed on their account.
__________________
Last edited by Intell; Yesterday at 10:45 AM.
Intell is offline   0 Reply With Quote
Old Jan 30, 2013, 10:36 PM   #3
estorstenson
macrumors member
 
Join Date: Jan 2013
I would say you were mistyping the password. If it's your university's server, I doubt the login is timing out. If you are trying to log into your own machine, maybe you were actually hitting a different machine by mistake?

Also, keep in mind that the account on your mac is what is used by default. So, if your user account is JohnDoe on your mac, and it's actually jdoe123 on the server, just typing: ssh servername isn't good enough. You'll need to specify the username you are trying to log into: ssh jdoe123@servername
estorstenson is offline   0 Reply With Quote
Old Jan 30, 2013, 10:54 PM   #4
norcal707
Thread Starter
macrumors newbie
 
Join Date: Jan 2013
Quote:
Originally Posted by estorstenson View Post
I would say you were mistyping the password. If it's your university's server, I doubt the login is timing out. If you are trying to log into your own machine, maybe you were actually hitting a different machine by mistake?

Also, keep in mind that the account on your mac is what is used by default. So, if your user account is JohnDoe on your mac, and it's actually jdoe123 on the server, just typing: ssh servername isn't good enough. You'll need to specify the username you are trying to log into: ssh jdoe123@servername
I have made sure the remote login and management are checked for both computers, and that the correct servername and ip is there. now it gives me
port 22: operation timeout
as long as the correct servername and ip is found when you enable the remote login? it gives you a specific set that you enter into a terminal "ssh user@###"
norcal707 is offline   0 Reply With Quote
Old Jan 31, 2013, 04:35 AM   #5
LPZ
macrumors 65816
 
Join Date: Jul 2006
Quote:
Originally Posted by norcal707 View Post
I have made sure the remote login and management are checked for both computers, and that the correct servername and ip is there. now it gives me
port 22: operation timeout
as long as the correct servername and ip is found when you enable the remote login? it gives you a specific set that you enter into a terminal "ssh user@###"
First, you don't need Remote Login enabled on the computer from which you are issuing the ssh command. Remote Login needs to be enabled only on the machine you wish to reach. Please disable Remote Login on the machine from which you are issuing the ssh command, unless you also wish to login to that machine from somewhere else. No sense providing a potential security vulnerability.

To get more information, you could invoke ssh in verbose mode. In Terminal, enter

Code:
ssh -vvv username@ip_address
What output do you get?
LPZ is offline   0 Reply With Quote
Old Jan 31, 2013, 03:35 PM   #6
norcal707
Thread Starter
macrumors newbie
 
Join Date: Jan 2013
Quote:
Originally Posted by LPZ View Post
First, you don't need Remote Login enabled on the computer from which you are issuing the ssh command. Remote Login needs to be enabled only on the machine you wish to reach. Please disable Remote Login on the machine from which you are issuing the ssh command, unless you also wish to login to that machine from somewhere else. No sense providing a potential security vulnerability.

To get more information, you could invoke ssh in verbose mode. In Terminal, enter

Code:
ssh -vvv username@ip_address
What output do you get?
it reads out, port 22: operation timeout

port 22 is open on both computers, i've read online that after a number of failed login attempts it wont allow my ip to connect anymore? Not sure if this is true I have yet to have a successful connection, is there any sort of guide i should be reading for introductory level computer skills/hacking im not sure what it would be called. any help appreciated even if its just interesting things i could do on a computer! thank you!
norcal707 is offline   0 Reply With Quote
Old Jan 31, 2013, 03:44 PM   #7
LPZ
macrumors 65816
 
Join Date: Jul 2006
Quote:
Originally Posted by norcal707 View Post
it reads out, port 22: operation timeout
That's not very verbose. Are you sure you typed the -vvv?

What happens if you enter the following in Terminal on the machine where you are typing ssh?

Code:
traceroute -m 10 ip_address_you_want_to_reach
And there's no reason to have port 22 open on the machine you are trying to connect from.
LPZ is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Ssh server. How to block all internet traffic except ssh? Mikehuang OS X Mavericks (10.9) 3 Mar 30, 2014 09:55 PM
SSH Control - ssh/telnet remote control app for iOS Velestar iPhone and iPod touch Apps 0 Jan 23, 2014 04:43 AM
ssh MacPC OS X 10.8 Mountain Lion 0 Feb 18, 2013 07:48 AM
SSH Help tulipano iPad 0 Aug 25, 2012 10:24 PM
Im new. Need help with SSH bclizzle Jailbreaks and iOS Hacks 2 Jun 6, 2012 10:47 AM

Forum Jump

All times are GMT -5. The time now is 03:03 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC