Fickle ssh connection with OpenSSH on FreeBSD 7.0


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Fickle ssh connection with OpenSSH on FreeBSD 7.0
# 1  
Old 06-05-2009
Fickle ssh connection with OpenSSH on FreeBSD 7.0

I have a FreeBSD server on my home network. It is hooked to the router with an Ethernet cable. Both the server and the router are in the basement. The other computers in the house are upstairs, wireless. So the server's local IP address is set outside the wireless pool, and suppose it's 192.168.10.2. My internet connection comes with a dynamic IP address. I got around that with ddclient and dyndns.com, and suppose the server url is myserver.homeunix.net.

Here's what's wrong with this setup: for no rhyme or reason, sometimes I can log into the server with

ssh gabi@myserver.homeunix.net

and other times I cannot. Instead, I can only do

ssh gabi@192.168.10.2

Does anybody have any idea why this might be?

Thank you,

Gabi
# 2  
Old 06-05-2009
workaround

try adding both names and ip addresses for your machines in the following files:

for windows c:\windows\system32\drivers\etc\hosts
for unix /etc/hosts
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Ssh script to validate ssh connection to multiple serves with status

Hi, I want to validate ssh connection one after one for multiple servers..... password less keys already setup but now i want to validate if ssh is working fine or not... I have .sh script like below and i have servers.txt contains all the list of servers #/bin/bash for host in $(cat... (3 Replies)
Discussion started by: sreeram4
3 Replies

2. Red Hat

Vulnerability with ssh in OpenSSH in an RHEL installation

There was a security analysis run on one server which has RHEL 5.8 installed and it is showing security vulnerabilities with respect to ssh in OpenSSH with reference no CVE-2007-4752. The vulnerability solution in the security report is showing solution as below: 1) Download and apply the... (3 Replies)
Discussion started by: RHCE
3 Replies

3. UNIX for Advanced & Expert Users

How keep running a program n an another computer via a connection ssh when the connection is closed?

Hi everybody, I am running a program on a supercomputer via my personal computer through a ssh connection. My program take more than a day to run, so when I left work with my PC I stop the connection with the supercomputer and the program stop. I am wondering if someone know how I can manage... (2 Replies)
Discussion started by: TomTomGre
2 Replies

4. UNIX for Advanced & Expert Users

SFTP Jail With Sun SSH Not OpenSSH

Hi all, I have a Solaris 10 server with SUN_SSH_1.1 installed. I want to restrict a user via SFTP to only be able to access one directory. I've written a little script in .profile which works perfectly for an ssh login but it appears sftp doesn't read the .profile file so it doesn't work. ... (2 Replies)
Discussion started by: Donkey25
2 Replies

5. Solaris

Please help me.. connection failed between OpenSSH-3.8.1 to Sun SSH-1.1

hi All, We tried to establish a connection from OpenSSH3.8.1 running on Windows Box to SunSSH-1.1 running on Solaris 10. Please see the debug statements. C:\Documents and Settings\sadmin\.ssh>ssh sadmin@10.4.3.8 -v -v -v OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004 debug1: Reading... (2 Replies)
Discussion started by: venusunil
2 Replies

6. IP Networking

connection reset by peer on freebsd

hi all. am running postgresql in a vm on debian server. i have some client programs connecting to the db. when i check the logs of postgresql i see "connection reset by peer" can someone help me with this issue... thanks. (1 Reply)
Discussion started by: coolatt
1 Replies

7. Solaris

Solaris 9, ssh and openssh

I set the RETRIES and DISABLETIME in /etc/default/login on 2 systems: - 1 Solaris 9 system running Sun SSH - 1 Solaris 9 system running Openssh 5.2 P1 I expected that after n failed logins, the login process will hang for n seconds. It does when the attempted login is done at the console... (8 Replies)
Discussion started by: jabentay
8 Replies

8. UNIX for Dummies Questions & Answers

OpenSSH incompatibility with Sun SSH ??

I am using OpenSSH on my sun servers. There is another suite of sun servers attempting to SSH into my machines. I am running ssh -vv: OpenSSH_4.4p1, OpenSSL 0.9.8d 28 Sep 2006 the other guy is running the sun version of ssh (i don't know what/if any differences there are between... (7 Replies)
Discussion started by: EWTGPAC
7 Replies

9. Cybersecurity

commercial SSH vs. OpenSSH

I'm not sure if this is appropriate for the forum, but I figured it was security related, so here goes... I'm writing an anlaysis for my group about moving some of the old internet protocols (rsh, rlogin, etc...) to the SSH suite of tools. An outside security group recommended a commercial... (7 Replies)
Discussion started by: jalburger
7 Replies
Login or Register to Ask a Question