"Permission denied" when trying to SSH my iPhone though password is correct


 
Thread Tools Search this Thread
Operating Systems OS X (Apple) "Permission denied" when trying to SSH my iPhone though password is correct
# 1  
Old 12-27-2018
"Permission denied" when trying to SSH my iPhone though password is correct

Hi,

I hope this is the correct section in the forum to post as I'm trying to SSH from my MacBook.
I was looking to see whether ssh on my jailbroken iPhone 6s (10.3.1) still works fine and was following this old reddit guide. I installed OpenSSH&OpenSSL from Cydia and changed the password using MTerminal successfully. I did check whether the password is correct through the command "su" and it did work.

When trying to SSH from my OSX's Terminal I get the following error message after each of the 3 attempts it gives me.
Code:
Permission denied (publickey,password,keyboard-interactive)

I did a couple google searches and deleted the known hosts file from my OSX. That did not work out. So then I set the root password back to "alpine" not via Terminal, but by modifying /etc/master.passwd . Then successfully checked whether it worked via MTerminal. Still on my Mac it gives me the same Permission denied error.

I also tried ssh my phone without success after connecting both devices to another WiFi.

This is the command I enter when trying to ssh my iPhone by the way: "ssh root@192.168.178.55"
Would the output that comes when using ssh -v be helpful and safe to post publicly?

Thanks in advance!
# 2  
Old 12-27-2018
Hi,

It is more likely that direct root login is not allowed, this is usually set in the /etc/ssh/sshd_config file. Can you ssh in as an other user?

Regards

Gull04
# 3  
Old 12-27-2018
Quote:
Originally Posted by gull04
Hi,

It is more likely that direct root login is not allowed, this is usually set in the /etc/ssh/sshd_config file. Can you ssh in as an other user?

Regards

Gull04
Thanks for answering!
As what other user could I ssh in? I did find the sshd_config file. Do I need to do anything with it?
# 4  
Old 12-27-2018
Hi,

There should be a line that says "PermitRootLogin No", you have to change that to "PermitRootLogin Yes" - then restart ssh.

Regards

Gull04
# 5  
Old 12-27-2018
It already says "#PermitRootLogin yes" in the sshd_config file.
# 6  
Old 12-27-2018
The leading # makes the line a comment and therefore ignored. Try removing the leading # and then restart and see if that works.


I hope that this helps,
Robin
# 7  
Old 12-27-2018
Thanks rbatte1 and gull04. Worked!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

SSH connection "Permission denied"

Hello, I tried to connect with root or any other user to AIX using ssh. It throws me error like Permission denied (publickey,keyboard-interactive). i don't know why!! and the PermitRootLogin is yes any help will be appreciated Thanks (7 Replies)
Discussion started by: moudmm
7 Replies

2. Solaris

"Permission denied" when changing IP netmask

hello everyone, I am new on unix systems. I am working with a Solaris 10 OS. When i try to change netmask on certain interface: I get: How can i enable permission for changing that ? I have administrator privileges. Your help is much appreciated. thanks, (13 Replies)
Discussion started by: pablod76
13 Replies

3. UNIX for Advanced & Expert Users

Showing "permission denied" when trying to login in - Montavista Linux

Hello friends, I have scratched my system and after that when I am trying to access the console via root login it's failing with an error message of "permission denied". I am able to access the other login, I am having only problem with root and some other user login. I am using an telnet... (7 Replies)
Discussion started by: sanoop
7 Replies

4. Linux

Showing "permission denied" when trying to login in - Montavista Linux

Hello friends, I have scratched my system and after that when I am trying to access the console via root login it's failing with an error message of "permission denied". I am able to access the other login, I am having only problem with root and some other user login. I am using an telnet... (2 Replies)
Discussion started by: sanoop
2 Replies

5. Red Hat

+ + in .rhosts is causing a "Permission Denied"

I have a user who has "+ +" at the top of his .rhosts file. He cannot "rsh NODE date" to a different box ( both are RHEL 5.4 ). If I remove the "+ +" then the "RSH" works. I have correct settings of node names/user in the .rhosts file. I even tried adding to the second box's... (3 Replies)
Discussion started by: rom828
3 Replies

6. Solaris

BSM auditing issues, need to audit "permission denied"

Let me preface with I am semi-new to Solaris. I work with it in the labs at work and that's about my extent (although I run Linux at home). Well, a week ago security comes around with updated requirements, some of which are the need to audit all failures. For the life of me I cannot get a... (0 Replies)
Discussion started by: mph275
0 Replies

7. OS X (Apple)

"Permission Denied" while modifying mounted files on MAC

Hi, I have two machines 1. MacOSx (Users --> userMac , IP - a.b.c.d) 2. FreeBSD (Users --> userBSD, IP- p.q.r.s) I want to modify some files of FreeBSD on my MacOS. So, I mounted the FreeBSD folder on my Mac as follows. $ sudo mount -o -P p.q.r.s:/usr/home/user... (5 Replies)
Discussion started by: akash.mahakode
5 Replies

8. UNIX for Dummies Questions & Answers

changing password with sudo user " permission denied"

HI All, I am using solaris i created a user adam and updated his permissions in vi sudoers file as follows adam ALL=(ALL) NOPASSWORD: ALL ........... when i create user by logging as sudo user . $ sudo useradd -d /home/kalyan -m -s /bin/sh kalyan sudo: not found ... (6 Replies)
Discussion started by: kalyankalyan
6 Replies

9. UNIX for Advanced & Expert Users

permission denied for ". " (dot space)

Hi, When I try to run a script with ". "(dot space) in my home, it gives me error ".: Permission denied". Any explanation for this behaviour? Thanks in advance, -Ashish (3 Replies)
Discussion started by: shriashishpatil
3 Replies

10. Shell Programming and Scripting

screen throws "permission denied"

Hi all, i've got problem in running a script in background... i have written a script, and i want to run it everytime i log in, but when i log off i want the script to stay (i watch not to run two scripts at one time in the script). so as a normal user i want to do: $ screen my_script & ... (6 Replies)
Discussion started by: miechu
6 Replies
Login or Register to Ask a Question