User Name
Password
AppleNova Forums » Genius Bar »

Can't SSH to my Ubuntu box


Register Members List Calendar Search FAQ Posting Guidelines
Can't SSH to my Ubuntu box
Thread Tools
ThunderPoit
Making sawdust
 
Join Date: May 2004
Location: Minnesota
 
2008-05-02, 21:38

I have a hobby server running Ubuntu 7.1. I can use SSH to connect to it just fine from my powerbook, but i cannot connect from my powermac. I type ssh dave@192.168.1.254 in terminal, and the system just sits there for about 30 seconds, then returns this:
Wrie failed: Broken pipe
Any ideas why i can connect from one machine but not another? Any log files from either machine that i should be looking at?
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2008-05-02, 21:55

Can you ping that IP from your Power Mac?

Also, try ssh -v dave@192.168.1.254 (-v is for verbose mode) to get some more details about the connection attempt and failure. Share the results in a [code][/code] block.

The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting.
  quote
ThunderPoit
Making sawdust
 
Join Date: May 2004
Location: Minnesota
 
2008-05-02, 22:08

i can ping it
heres what got with the -v flag:

Code:
PMac:~ dave$ ssh -v dave@192.168.1.254 OpenSSH_4.7p1, OpenSSL 0.9.7l 28 Sep 2006 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to 192.168.1.254 [192.168.1.254] port 22. debug1: Connection established. debug1: identity file /Users/dave/.ssh/identity type -1 debug1: identity file /Users/dave/.ssh/id_rsa type -1 debug1: identity file /Users/dave/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_4.6p1 Debian-5build1 debug1: match: OpenSSH_4.6p1 Debian-5build1 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.7 debug1: An invalid name was supplied Cannot determine realm for numeric host address debug1: An invalid name was supplied Cannot determine realm for numeric host address debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP Write failed: Broken pipe PMac:~ dave$
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2008-05-02, 22:21

Hmmm... it seems there are other Ubuntu users with similar issues out there. Try this idea: on the server, edit your /etc/ssh/ssh_config file to set GSSAPIAuthentication to "no" instead of "yes". Then restart sshd and try connecting again.

The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting.
  quote
ThunderPoit
Making sawdust
 
Join Date: May 2004
Location: Minnesota
 
2008-05-02, 22:22

the who and the what now?
Im just a little confused as to why one machine can connect to it while another cannot.

I'll go edit the file, but how do i restart sshd?
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2008-05-02, 22:25

You're running a Linux server and you don't know how to restart the daemons?

It varies by distro, but this probably works:
Code:
sudo /etc/init.d/sshd restart
  quote
ThunderPoit
Making sawdust
 
Join Date: May 2004
Location: Minnesota
 
2008-05-02, 22:29

its a hobby server, im slowly learning
i rebooted it before i saw your post, i assume that will accomplish the same thing, correct?
  quote
ThunderPoit
Making sawdust
 
Join Date: May 2004
Location: Minnesota
 
2008-05-02, 22:34

still no go after the reboot. i think that the sshd is working just fine since i have never had a problem connecting with my powerbook, so wouldnt the problem be with my pmac and not the server?
  quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Post Reply

Forum Jump
Thread Tools
Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC and SSH naashraf Genius Bar 8 2009-11-22 05:07
Weird box appeared...How can I get rid of it? iThink therefore iMac Genius Bar 5 2007-10-21 10:36
ssh not working through Terminal kieran Genius Bar 7 2007-08-18 10:52
SSH connection to Mac naashraf Genius Bar 4 2006-03-28 08:10
ssh question bruce Genius Bar 4 2005-09-09 13:31


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 12:11.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova