Can't establish outbound ssh connection on an OpenBSD system


 
Thread Tools Search this Thread
Operating Systems BSD Can't establish outbound ssh connection on an OpenBSD system
# 1  
Old 03-03-2018
Can't establish outbound ssh connection on an OpenBSD system

I am getting the below error when I try to make outbound ssh from an OpenBSD system. I can't ssh to any host except the localhost. I can ping the hosts which I can't ssh, though.
Code:
~ uname -rs
OpenBSD 6.1
~ ssh -V       
OpenSSH_7.5, LibreSSL 2.5.2
~ ssh hostname
ssh: connect to host hostname port 22: No route to host

I can ssh to hostname from other Linux or BSD machines without any problem.

Last edited by milhan; 03-19-2018 at 12:31 PM.. Reason: title correction
# 2  
Old 03-03-2018
(local?) firewall?
# 3  
Old 03-03-2018
I was told by the sysadmin it is not the firewall.
# 4  
Old 03-03-2018
If you can ping them there is a route.. nothing funny in the hosts firewall? Can you post the output of pfctl -sr
# 5  
Old 03-04-2018
Quote:
Originally Posted by neutronscott
If you can ping them there is a route.. nothing funny in the hosts firewall? Can you post the output of pfctl -sr
I can't ssh to any hosts from this OpenBSD server at all. But I can ssh to all these other hosts from my Linux machine or other BSD or windows machines.
Code:
~ pfctl -sr
pfctl: /dev/pf: Permission denied

# 6  
Old 03-04-2018
Output of ssh -vvv hostname?
# 7  
Old 03-04-2018
Quote:
Originally Posted by RudiC
Output of ssh -vvv hostname?
Code:
~ ssh -vvv sdf.org                                                                                       
OpenSSH_7.5, LibreSSL 2.5.2
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolving "sdf.org" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to sdf.org [205.166.94.15] port 22.
debug1: connect to address 205.166.94.15 port 22: No route to host
ssh: connect to host sdf.org port 22: No route to host


Last edited by milhan; 03-05-2018 at 05:27 PM.. Reason: code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

Unable to establish connection over TLS 1.2 on AIX 7.1/7.2

Hello Team, I would need your help to enable communication over TLS1.2 on AIX 7.1 or 7.2 with IBM JDK 1.8 latest update. By default, the request is trying to establish a connection over TLSv1 even though TLS 1.2 is explicitly enabled on server as well as on Java 8. The openssl command throws... (4 Replies)
Discussion started by: Naina2019
4 Replies

2. 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

3. BSD

Connection SSH to remote by ssh

Hello guys! I am setting up a script to access a unix remote server. My problem is that when I put the ssh line "my host", the script does not wait for the server response asking for the password to execute the line in which I put the password, that is, I need to put a form in which script has a... (1 Reply)
Discussion started by: aroucasp
1 Replies

4. Red Hat

Proxy tunneling failed: ForbiddenUnable to establish SSL connection.

Tryied both ways curl and wget wget --no-check-certificate https://mysitet.it:61617 --2017-05-05 17:29:02-- https://mysitet.it:61617/ Connecting to myproxy:8080... connected. Proxy tunneling failed: ForbiddenUnable to establish SSL connection. curl https://mysite.it:61617 curl: (56)... (3 Replies)
Discussion started by: charli1
3 Replies

5. Red Hat

Connection establish two server

How do make connection between two linux server.Such as SSH,rsync,ftp (3 Replies)
Discussion started by: Mani T
3 Replies

6. Shell Programming and Scripting

Establish ODBC connection from Linux

Hi All, I want to establish a ODBC connection to a database from linux and query the tables of a database. Please let me know how I can achieve this. Thanks and Regards Nagaraja Akkivalli. (0 Replies)
Discussion started by: Nagaraja Akkiva
0 Replies

7. 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

8. HP-UX

Xterm :Cannot establish a connection to "Server IP" on port 22

Dears, I installed HP-UX Server, when I tried to reach it through Xterm it returns the error like Xrcmd Cannot establish a connection to "Server IP" on port 22 Anyone here to tell me the reason(s) find attached xterm.jpg (3 Replies)
Discussion started by: smartyshan
3 Replies
Login or Register to Ask a Question