BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old February 9th, 2002, 01:15 AM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
problem with ssh and sftp

This is pretty strange to me. At first, when I configured /etc/sshd_config then restart ssh. After that, everything went so smoothly which my friends can access in it with their ssh client. For some reason, after reboot and they all can't ever login anymore. It keeps said, the password is incorrect which we haven't ever change ssh key nor our password. Ever, I recreate a new account and ssh key, but it still same result. Also, there have no error in the log so I am kind of lost.

Here's my /etc/sshd_config looks like this..

#---------------------------------------------------------
Port 22
Protocol 2
HostDsaKey /etc/ssh/ssh_host_dsa_key
ServerKeyBits 768
LoginGraceTime 120
KeyRegenerationInterval 3600
PermitRootLogin no
MaxStartups 10:30:60
IgnoreRhosts yes
StrictModes yes
X11Forwarding no
PrintMotd yes
KeepAlive yes
SyslogFacility AUTH
LogLevel DEBUG
RhostsAuthentication no
RhostsRSAAuthentication no
RSAAuthentication yes
PasswordAuthentication no
PermitEmptyPasswords no
CheckMail yes
Subsystem sftp /usr/libexec/sftp-server
#---------------------------------------------------------

I created the dsa key follows:
$ ssh-keygen -d
$ cat ~/.ssh/id_dsa.pub > ~/.ssh/authorized_keys2

Are there anything that I am missing with ssh or configure it in wrong way?

Reply With Quote
  #2  
Old February 9th, 2002, 01:19 AM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
BTW: What did I change or modify right before reboot? All I did was enable the Quota in /etc/rc.conf then reboot. That's all what I had done..

Reply With Quote
  #3  
Old February 9th, 2002, 02:42 AM
BlurZero BlurZero is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Edmonton, AB, Canada
Posts: 44 BlurZero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to BlurZero
Is sshd running? Maybe you should try running it with the debug switch on, to see what errors it gives you.

For OpenSSH look at the man pages. Basically, run ./sshd -ddd

I'm not sure how you'd do it on other sshd versions.

Reply With Quote
  #4  
Old February 9th, 2002, 03:25 PM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I ran sshd as debug, so here it's...

debug1: sshd version OpenSSH_2.9 FreeBSD localisations 20011202
debug1: read PEM private key done: type DSA
debug1: private host key: #0 type 2 DSA
debug1: Bind to port 22 on 0.0.0.0
Bind to port 22 on 0.0.0.0 failed: Address already in use.
Cannot bind any address.

Well, I already check in the man page several times and it doesn't ever help me. Maybe, it's me that I misunderstand it. Umm, I should disable Quota and see what happens.

Thanks,
Mezz

Reply With Quote
  #5  
Old February 9th, 2002, 03:31 PM
BlurZero BlurZero is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Edmonton, AB, Canada
Posts: 44 BlurZero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to BlurZero
You're getting that message because sshd is already running, and using port 22. Kill all instances of sshd, then run it with the debugging flags. It should then run in a console. Then try to connect over ssh, and see what messages are printed to the console.

Reply With Quote
  #6  
Old February 9th, 2002, 05:17 PM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
ok, when I debug and where does it prints the debug on file? It's too long to copy by type from screen.

Reply With Quote
  #7  
Old February 9th, 2002, 05:21 PM
BlurZero BlurZero is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Edmonton, AB, Canada
Posts: 44 BlurZero User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to BlurZero
Hmmm? Are you asking how to put the debug output into a file? Try ./sshd -ddd > /some/directory/yourfile

Reply With Quote
  #8  
Old February 9th, 2002, 09:19 PM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I already tried before you answered and it doesn't ever works..

I did follows:

sshd -d > ~/sshd_debug

Then it's empty there, which it's login as root by su command.

Last edited by mezz : February 9th, 2002 at 10:08 PM.

Reply With Quote
  #9  
Old February 9th, 2002, 11:21 PM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Ok, I kind of find the problem... I think, it has something to do with tunneled clear text and unclear text..

When I changed from follows:

PasswordAuthentication no

to

PasswordAuthentication yes

The result looks like this follows:

login as: mezz
otp-md5 259 me5816 ext
S/Key Password:
Access denied
mezz@65.27.xxx.xxx's password:

At second login, it allowed me to login, which I don't really understand what's wrong with tunneled unclear text?

Last edited by mezz : February 11th, 2002 at 04:01 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > problem with ssh and sftp


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway