Skip to content
Advertisement

ssh connection from Mac OS X shows “>” prompt and stays there

Problem – when I try to connect to an Amazon AWS EC2 linux instance through SSH, instead of connecting, it simply shows a > prompt as if asking for more info.

command entered through terminal ssh -i “<private_key_path>" <user>@<host_address>

when i hit enter, it just shows a > prompt. there are no errors, or messages. Just that single prompt which accepts anything i write. so probably asking for more input.

I had connected to the EC2 instance yesterday (using this exact code) and it worked then. so the command itself is correct, including username, host address, private key file, etc. It has to be something else with the OS. Between then and now, I dont remember making any significant change to the system. The only change i can think of was a week back when I reset my PATH variable to fix a problem.

My current $PATH output //anaconda/bin:/usr/local/bin:/usr/local/mysql/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin: No such file or directory

I have already searched on google and stackoverflow, but didnt find any previously asked questions along this line. Also I am new to ssh and linux (having worked on windows for the past 15 years). so there might be something really simple that I am just not aware of.

Advertisement

Answer

Edited: Please do not quote the identity file path.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement