Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » General Discussion

Post new topic   Reply to topic
Ssh Learning
View previous topic :: View next topic  
Author Message
vivanguarda
Member


Joined: 01 May 2009
Posts: 98

PostPosted: Sat Oct 08, 2011 4:09 am    Post subject: Ssh Learning Reply with quote

Good Evening!!!

I am reading about ssh remote uses, but I don't get a sucessfully way to do it yet. At home, I am using a default slack13.37 machine and trying access my office sms server. It 's nat rules and no firewall.

At first, on slack, I don't get to start ssh, but:

nmap localhost
Starting Nmap 5.51 ( http://nmap.org ) at 2011-10-07 20:34 BRT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000010s latency).
Not shown: 996 closed ports
PORT STATE SERVICE
22/tcp open ssh
37/tcp open time
113/tcp open auth
631/tcp open ipp



And when I try ssh to Sms server...
ssh 201.37.1.100 -l root -p 22

there is a very long time to respond.


Also, there is another problem when restart sshd
chmod +x /etc/rc.d/rc.sshd
/etc/rc.d/rc.sshd restart


Could not load host key: /etc/ssh/ssh_host_rsa_key


Is this key a part of ssh Sms daemon?
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Sat Oct 08, 2011 6:54 am    Post subject: Reply with quote

If you look at /etc/rc.d/rc.sshd you will see
Code:
sshd_start() {
  # Create host keys if needed.
  if [ ! -r /etc/ssh/ssh_host_key ]; then
    /usr/bin/ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ''
  fi
  if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
    /usr/bin/ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
  fi
  if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
    /usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
  fi
  if [ ! -f /etc/ssh/ssh_host_ecdsa_key ]; then
    /usr/bin/ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ''
  fi
  /usr/sbin/sshd
}

So every time it starts, it create those keys.

The long time to respond it's a DNS issue, add your SMS box in /etc/hosts on your office machine and your office machine in /etc/hosts on SMS.
A dyndns account solves tis issue.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » General Discussion All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional