ssh question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ssh question
# 8  
Old 06-03-2008
doing this shows the correct ip

Code:
#  /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:12:3F:20:FD:A4  
          inet addr:192.168.61.10  Bcast:192.168.61.255  Mask:255.255.255.0
          inet6 addr: fe80::212:3fff:fe20:fda4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:99255 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55386 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:115931393 (110.5 MiB)  TX bytes:7612071 (7.2 MiB)
          Base address:0xecc0 Memory:dfde0000-dfe00000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3548 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3548 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2823374 (2.6 MiB)  TX bytes:2823374 (2.6 MiB)

# 9  
Old 06-03-2008
to enable telnet go to /etc/xinetd.d/telnet
change
disabled = no
then save
service xinetd restart

to check ssh first try to ssh through loop back adapter,
ssh 127.0.0.1 if it works, then you need to enable port forwarding, forward your local ip with your ssh port.
# 10  
Old 06-04-2008
That you can't ping it should be your firewall blocking ICMP requests. That you can reach it via ftp and http is a good sign, which excludes that your default GW is set wrong, as long as you didn't test it from another box, that is in the same network ie. 192.168.61.0/24.

A "grep ssh /etc/services" shows port 22 I guess? Just to be sure, that it's not running on another port since it is up with the service name "ssh".

Again, try to connect via ssh from it to itself (192.168.61.10).
# 11  
Old 06-06-2008
netstat -rn

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.61.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         192.168.61.1    0.0.0.0         UG        0 0          0 eth0


Now As of today I can now ssh in from the local domain which I could not do before. I can also telnet in remotely which I couldn't do before.

Now my nat ip is 192.168.61.10 should that not show up in this table?

Last edited by mcraul; 06-06-2008 at 03:40 PM..
# 12  
Old 06-06-2008
Update

netstat -a| grep -E "ssh|\:22"


Code:
tcp        0      0 mydomain.net:2208         *:*                         LISTEN      
tcp        0      0 mydomain.net:2207         *:*                         LISTEN      
tcp        0      0 *:ssh                       *:*                         LISTEN      
unix  2      [ ACC ]     STREAM     LISTENING     8387   /tmp/ssh-PhUeZX3175/agent.3175


No again I can ssh internally including the loopback but I cannot ssh in from the outside, it either times out or says connection refused. I have already portforward the ssh port on my router/firewall. could it be the server firewall is preventing connection to the ssh port? How can i check?

thanks!

Last edited by mcraul; 06-06-2008 at 03:42 PM..
# 13  
Old 06-10-2008
bump

thanks
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Ssh tunnel question

Hi all I have a suite of scripts that ssh to remote servers within a cluster and run some tests. This is done from a central server so that all of the test results can be captured in one location. Problem is I now have 509 tests and the number is growing. The scripts work by establishing a... (2 Replies)
Discussion started by: steadyonabix
2 Replies

2. Shell Programming and Scripting

Question about parameters in ssh

Hello where I can find or can anybody send me a full list with parameters of ssh. I hope to understand what I mean. For exam -xpvf (tar -xpvf file.tar.gz) -x -p -v -f what do any of these parameters I have command for extract tar.gz file but I want to do this without folder but I don't know what... (2 Replies)
Discussion started by: gladiator6
2 Replies

3. Red Hat

ssh daemon question

Hi, I'm trying to connect from one server to another via ssh, the server that I'm connecting from only has openssh installed. The server that I'm connecting to has the following packages installed: ssh-3.2.9.1-ML_RHEL4 openssh-3.9p1-8.RHEL4.12 openssh-clients-3.9p1-8.RHEL4.12... (0 Replies)
Discussion started by: newb1000
0 Replies

4. UNIX for Advanced & Expert Users

SSH and alias question...

i regularly login to servers that I donot control. On many of these servers I do not have home dir. I need to set aliases from my host to the remote machine when I ssh in. for example from when I go from hosta --> hostb. I want all my aliases from hosta to be present in hostb once I login. ( i... (5 Replies)
Discussion started by: vijayrajah
5 Replies

5. Cybersecurity

ssh question

I have a query on ssh. /home/user1/ # ssh remote_host When the fingerprint created and saved in /home/user1/.ssh/known_hosts file, is the fingerprint the public key of remote_host? (2 Replies)
Discussion started by: ij_2005
2 Replies

6. Solaris

Silly question regarding SSH.

Hi Guys, I have installed SSH package on server as well as clients. I think I need to these steps next. Login as root on the server. 1) ssh-keygen -b 1024 -t rsa -f /etc/ssh_hosts_key.pub -N " " Login to root as the user. 2)ssh_keygen -b 1024 -t rsa Enter the phrase Basically this... (3 Replies)
Discussion started by: nitinkgoud
3 Replies

7. UNIX for Dummies Questions & Answers

ssh question

Dear all, I have a question regarding the remote access a server without login using "ssh". I'm thinking if there is anyway to send a certificate pass to ssh command. For example, I need write a script for a user who doesn't have access to any server but running this script. Within the... (1 Reply)
Discussion started by: ting123
1 Replies

8. Cybersecurity

Casual Question regarding ssh

I have openssh installed on the Unix machines. I have also set the syslog level to auth.debug so that the all the ssh entries are logged. I have this vague message which in no way affects my ssh session but still i am curious Whenever i log in it gives this error pam_secretd: error... (5 Replies)
Discussion started by: DPAI
5 Replies
Login or Register to Ask a Question