Page 1 of 2 12 LastLast
Results 1 to 10 of 14
Discuss ssh/sftp: connection refused! at the General - Hackint0sh.org; Hi, When I try to connect via ssh/sftp all I get is: "Connection refused" This ...
  1. #1
    Advanced Array

    Join Date
    Sep 2007
    Posts
    38
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default ssh/sftp: connection refused!

    Hi,

    When I try to connect via ssh/sftp all I get is:

    "Connection refused"

    This just happened to me today - it was working before!

    What can I do? Tried removing ssh via independence / uninstalling openssh via installer.app and reinstalled, but still no luck..

    Even stranger, I do get a Growl-Message saying "Bonjour iPhone xxx.local (SFTP)" whenever I restart it - so I guess there must be some sftp going on?



  2. #2
    FJT
    FJT is offline
    Senior Professional Array FJT's Avatar

    Join Date
    Aug 2007
    Posts
    130
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    13

    Default

    try changing file protocol to SCP
    User of:
    * White iPhone 3G
    * A Hackingt0sh PC (Windows & OSX on PC)
    * Apple Tv
    * Mac Mini


    NetCom - Norway

  3. #3
    Advanced Array

    Join Date
    Sep 2007
    Posts
    38
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    how do i do that? will it reenable ssh/sftp?

    thanks!

  4. #4
    Advanced Array

    Join Date
    Sep 2007
    Posts
    38
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    oh, btw, i get new a new error now when trying to connect via ssh/sftp:

    "Operation timed out"

  5. #5
    Senior Professional Array

    Join Date
    Aug 2007
    Posts
    312
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    22

    Default

    use terminal and type: ssh root@youripaddress

    you will get some text about how is was refused and it will refer to /users/ash/.ssh/knownhosts (NOTE: ash is my user account.. yours will be diferent

    now type rm -r /users/ash/.ssh/knownhosts (hit return)

    now type again: ssh root@youripaddress

    you should now have some text with a yes or no question at the end... type yes

    your ssh should be working again.


  6. #6
    Advanced Array

    Join Date
    Sep 2007
    Posts
    38
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    that didn't help..

    error:

    "ssh: connect to host 192.168.20.207 port 22: Operation timed out"

    also, do i need to have both openssh and dropbear running on the iphone?
    Last edited by ixray; 09-20-2007 at 02:59 PM.

  7. #7
    Advanced Array

    Join Date
    Sep 2007
    Posts
    30
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by ixray View Post
    that didn't help..

    error:

    "ssh: connect to host 192.168.20.207 port 22: Operation timed out"

    also, do i need to have both openssh and dropbear running on the iphone?
    Nope, it's either one or the other.

  8. #8
    Advanced Array

    Join Date
    Sep 2007
    Posts
    38
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    please, can anybody help?

    i've tried de- and reinstalling both oppenssh and dropbear (via independence) several times now, together and separate..

    while i used to get the "connection refuse" error, now all i get is "operation timed out"..

    can i restore my phone to get ssh working again? this http://www.iphonegoboom.com/#restore guide says i need to put some files on my phone to do it - but how i am supposed to do that if ssh/sftp won't work? also, i don't really want to restore since everything else is working fine (need write-access though to put gprs-proxy-files).

    i really don't get though how i'm still able to put ringtones and wallpapers on the phone via independence, even after i removed ssh/sftp... i thought you'd need ssh/sftp to write files to the iphone?

    any help very much appreciated!

  9. #9
    Rookie Array

    Join Date
    Aug 2007
    Posts
    22
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by ixray View Post
    please, can anybody help?

    i've tried de- and reinstalling both oppenssh and dropbear (via independence) several times now, together and separate..

    while i used to get the "connection refuse" error, now all i get is "operation timed out"..

    can i restore my phone to get ssh working again? this http://www.iphonegoboom.com/#restore guide says i need to put some files on my phone to do it - but how i am supposed to do that if ssh/sftp won't work? also, i don't really want to restore since everything else is working fine (need write-access though to put gprs-proxy-files).

    i really don't get though how i'm still able to put ringtones and wallpapers on the phone via independence, even after i removed ssh/sftp... i thought you'd need ssh/sftp to write files to the iphone?

    any help very much appreciated!
    Getting "operation timed out" more likely means that your iPhone doesn't have Wi-Fi connection turned on, or has got a different IP address (comparing to the one which you're trying to access). Make sure your iPhone is working fine through Wi-Fi, find its IP address and ping it from your computer. If everything works, try to telnet to port number 22 and to see are there any reply. If everything works, pings, but still "connection timed out", your computer likely has firewall protection which denies you to do this. If you're getting "connection refused" this means that there is no SSH server running on your iPhone. Try to reinstall your SSH server.

  10. #10
    Advanced Array

    Join Date
    Sep 2007
    Posts
    38
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    iphone is connected to wifi and surfing the net.. ip-address is 100% correct..

    this is what i get when i ping:

    PING 192.168.10.207 (192.168.10.207): 56 data bytes
    64 bytes from 192.168.10.207: icmp_seq=0 ttl=64 time=433.259 ms
    64 bytes from 192.168.10.207: icmp_seq=2 ttl=64 time=83.023 ms
    64 bytes from 192.168.10.207: icmp_seq=3 ttl=64 time=87.650 ms
    64 bytes from 192.168.10.207: icmp_seq=4 ttl=64 time=9.515 ms
    64 bytes from 192.168.10.207: icmp_seq=5 ttl=64 time=30.807 ms
    64 bytes from 192.168.10.207: icmp_seq=6 ttl=64 time=157.490 ms
    64 bytes from 192.168.10.207: icmp_seq=7 ttl=64 time=78.083 ms
    64 bytes from 192.168.10.207: icmp_seq=8 ttl=64 time=109.320 ms
    64 bytes from 192.168.10.207: icmp_seq=9 ttl=64 time=23.442 ms

    --- 192.168.10.207 ping statistics ---
    10 packets transmitted, 9 packets received, 10% packet loss
    round-trip min/avg/max/stddev = 9.515/112.510/433.259/121.474 ms
    telnet gives me

    powerbook-g4-4:~ username$ telnet 192.168.10.207
    Trying 192.168.10.207...
    telnet: connect to address 192.168.10.207: Connection refused
    telnet: Unable to connect to remote host
    powerbook-g4-4:~ username $


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. [WinSCP] connection refused
    By joebotz in forum Tools
    Replies: 7
    Last Post: 09-01-2011, 12:16 AM
  2. Replies: 7
    Last Post: 05-21-2008, 04:45 AM
  3. Replies: 5
    Last Post: 09-12-2007, 01:08 PM
  4. SSH - Connection Refused?
    By sendtojamesj in forum Tools
    Replies: 2
    Last Post: 08-09-2007, 12:39 PM
  5. SSH - Connection Refused ! Please help.
    By Vic-Viper in forum Free Toolchain Software (Cydia App's)
    Replies: 3
    Last Post: 08-07-2007, 10:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 02:14 AM.
twitter, follow us!