question about SSH

Posted:
in Mac Software edited January 2014
Is anyone here intimately familiar with OSX's SSH? I use it from time to time, but not enough to understand errors when it gives them to me.



Specifically, I am trying to connect to a server using this command:



ssh -l myusername someserver.com



I am prompted for the password and I enter it. Then, I am given this strange little error:



Received disconnect from xxx.xxx.xxx.xxx: 2: fork failed: Resource temporarily unavailable



Where the x's were the server's IP address.



Any ideas? <img src="confused.gif" border="0">



[ 10-20-2002: Message edited by: Brad ]</p>

Comments

  • Reply 1 of 5
    eugeneeugene Posts: 8,254member
    That seems like a pretty cryptic error.



    Try going into verbose mode with -v



    If -v's not enough, try -vv, then -vvv. <img src="graemlins/lol.gif" border="0" alt="[Laughing]" />
  • Reply 2 of 5
    eugeneeugene Posts: 8,254member
    <a href="http://www.google.com/search?hl=en&amp;ie=ISO-8859-1&amp;q="Received+disconnect+from"+"fork+failed% 22" target="_blank">Google results.</a>



    A glance at a few of those results points to the computer you're trying to log into hitting the maximum number of simultaneous processes it can handle.



    [ 10-20-2002: Message edited by: Eugene ]</p>
  • Reply 3 of 5
    Very interesting...



    I suppose I'll have to contact the server admin about this.



    In the mean time, since you're an expert in these kinds of things, Eugene, you think you can find any more answers in the verbose output? You old horn dawg.



    from -v

    [quote][email protected]'s password:

    debug1: ssh-userauth2 successful: method password

    debug1: channel 0: new [client-session]

    debug1: send channel open 0

    debug1: Entering interactive session.

    debug1: ssh_session2_setup: id 0

    debug1: channel request 0: pty-req

    debug1: channel request 0: shell

    debug1: fd 3 setting TCP_NODELAY

    debug1: channel 0: open confirm rwindow 0 rmax 32768

    Received disconnect from XXX.XXX.XXX.XXX: 2: fork failed: Resource temporarily unavailable

    debug1: Calling cleanup 0x9018(0x0)

    debug1: Calling cleanup 0xdd80(0x0)

    debug1: channel_free: channel 0: client-session, nchannels 1

    debug1: Calling cleanup 0x17ddc(0x0)

    [brads-bitchin-box:~] bwsmith%<hr></blockquote>

    And from the -vvv:

    [quote][email protected]'s password:

    debug3: packet_send2: adding 64 (len 60 padlen 4 extra_pad 64)

    debug2: we sent a password packet, wait for reply

    debug1: ssh-userauth2 successful: method password

    debug1: channel 0: new [client-session]

    debug3: ssh_session2_open: channel_new: 0

    debug1: send channel open 0

    debug1: Entering interactive session.

    debug2: callback start

    debug1: ssh_session2_setup: id 0

    debug1: channel request 0: pty-req

    debug3: tty_make_modes: ospeed 9600

    debug3: tty_make_modes: ispeed 9600

    debug3: tty_make_modes: 1 3

    debug3: tty_make_modes: 2 28

    debug3: tty_make_modes: 3 127

    debug3: tty_make_modes: 4 21

    debug3: tty_make_modes: 5 4

    debug3: tty_make_modes: 6 255

    debug3: tty_make_modes: 7 255

    debug3: tty_make_modes: 8 17

    debug3: tty_make_modes: 9 19

    debug3: tty_make_modes: 10 26

    debug3: tty_make_modes: 11 25

    debug3: tty_make_modes: 12 18

    debug3: tty_make_modes: 13 23

    debug3: tty_make_modes: 14 22

    debug3: tty_make_modes: 17 255

    debug3: tty_make_modes: 18 15

    debug3: tty_make_modes: 30 0

    debug3: tty_make_modes: 31 0

    debug3: tty_make_modes: 32 0

    debug3: tty_make_modes: 33 0

    debug3: tty_make_modes: 34 0

    debug3: tty_make_modes: 35 0

    debug3: tty_make_modes: 36 1

    debug3: tty_make_modes: 38 1

    debug3: tty_make_modes: 39 1

    debug3: tty_make_modes: 40 0

    debug3: tty_make_modes: 41 1

    debug3: tty_make_modes: 50 1

    debug3: tty_make_modes: 51 1

    debug3: tty_make_modes: 53 1

    debug3: tty_make_modes: 54 1

    debug3: tty_make_modes: 55 0

    debug3: tty_make_modes: 56 0

    debug3: tty_make_modes: 57 0

    debug3: tty_make_modes: 58 0

    debug3: tty_make_modes: 59 1

    debug3: tty_make_modes: 60 1

    debug3: tty_make_modes: 61 1

    debug3: tty_make_modes: 62 1

    debug3: tty_make_modes: 70 1

    debug3: tty_make_modes: 72 1

    debug3: tty_make_modes: 90 1

    debug3: tty_make_modes: 91 1

    debug3: tty_make_modes: 92 0

    debug3: tty_make_modes: 93 0

    debug1: channel request 0: shell

    debug1: fd 3 setting TCP_NODELAY

    debug2: callback done

    debug1: channel 0: open confirm rwindow 0 rmax 32768

    Received disconnect from XXX.XXX.XXX.XXX: 2: fork failed: Resource temporarily unavailable

    debug1: Calling cleanup 0x9018(0x0)

    debug1: Calling cleanup 0xdd80(0x0)

    debug1: channel_free: channel 0: client-session, nchannels 1

    debug3: channel_free: status: The following connections are open:

    #0 client-session (t4 r0 i0/0 o0/0 fd 4/5)



    debug3: channel_close_fds: channel 0: r 4 w 5 e 6

    debug1: Calling cleanup 0x17ddc(0x0)

    [brads-bitchin-box:~] bwsmith% <hr></blockquote>

    MANY MANY thanks if you can help solve this problem. Believe me, the "whole community" will benefit. *hint hint*







    [ 10-20-2002: Message edited by: Brad ]</p>
  • Reply 4 of 5
    mcqmcq Posts: 1,543member
    I only use SSH infrequently as well, so I have no clue if it will help or not, but the way I usually connect with SSH to the CS servers at UF is:



    ssh yourusername@servername



    It'll prompt you for a pw to log in, and I log in that way. I wasn't aware of the -l parameter, and I prefer the way I log in... but anyways, maybe you could try that. I doubt the way logging in will miraculously help it work somehow, but I guess it's worth a shot. I kind of wonder if the resource fork means that it's trying to get you in a folder that doesn't exist, but then again i have no clue of those sorts of errors, so I'll end this random talk. Hope you figure it out soon.
  • Reply 5 of 5
    Your method is identical to mine. The syntax is just a little different. I get a password prompt too.



    <img src="graemlins/hmmm.gif" border="0" alt="[Hmmm]" />



    I'll pass this on to the Genius Bar later if no one else has any other ideas.
Sign In or Register to comment.