0
votes
0answers
9 views

Port forwarding does not work [migrated]

I am connecting to office network through VPN. I have two servers A and B. I have ssh/tomcat access to A through VPN but not to B. When I ssh into A, from there I can ssh into B. Also, B is running ...
1
vote
1answer
182 views

Trouble changing SSH port

I'm running a CENTOS web server with WHM and CSF firewall. I'm trying to change SSH from the default port. I've opened up the port in CSF and modified /etc/ssh/sshd_config uncommenting the port line ...
-2
votes
0answers
24 views

After recover sshd_config on my VPS my TeamSpeak 3 client can't connect with server [migrated]

I'm destroy my default sshd_config file in /etc/ssh/ on my VPS and I'm recover this to default one. After this I'm trying to connect with my TS3 server on this same VPS. OS says me TS is ON and ...
5
votes
1answer
181 views

SSH & SFTP: Should I assign one port to each user to facilitate bandwidth monitoring?

There is no easy way to track real-time per-user bandwidth usage for SSH and SFTP. I think assigning one port to each user may help, but I am wondering if my approach is workable. Use case Bob, ...
0
votes
1answer
55 views

ssh_exchange_identification Can't Access to SSH Amazon EC2 (Lock Out)

I get an error in terminal when I'm trying to access my instance in Amazon EC2. I use Centos 6.x server WHM/cPanel, i have access to WHM, but i DON'T have a complete access to FTP or SSH. ssh: ...
0
votes
0answers
102 views

ssh_exchange_identification: read: Connection refused

Everytime I'm trying to SSH into my Amazon EC2 Server i get an Error below: Zoc6 Error: ssh_exchange_identification: read: Connection refused Tried: Terminal (mac) - Failed Reinstall Zoc and ...
0
votes
1answer
21 views

What is the best way to create remote tunnel?

I have 3 Linux servers: - 10.0.0.0/24 - (10.0.0.10) Linux server inside my LAN. - 20.0.0.0/24 - (20.0.0.10) Linux server with HTTP Apache server - 50.50.50.50/32 - Server on Amazon AWS which see both ...
2
votes
3answers
195 views

Cannot log in into a server by ssh connection

was connected to a server via ssh through port 22, and decided to kill all the users connected with the root user with the following command: pkill -9 -u root Now when I try to log in by ...
1
vote
2answers
134 views

Changed SSH default port and disabled root login. Client didn't save the new port can't login/connect to it now

Working on my centos server. Connecting via putty. Changed SSH default port and disabled root login. But the client didn't save the new port and defaulted back to 22 (my new one was 42650 or something ...
8
votes
1answer
181 views

How do I specify port number for PuTTY to use with Windows cmd?

I start most of my SSH connections with a windows command like this cmd://"C:\Program Files\PuTTY\putty.exe" -ssh root@xxx.xx.xxx.xx I assume this defaults to port 22. Now I need to connect on a ...
1
vote
1answer
257 views

Centos does not open port/s after the rule/s are appended

So after some battling and struggling with the firewall, i see that I may be doing something or the firewall isnt responding correctly there is has a port filter that is blocking certain ports. by ...
-1
votes
1answer
350 views

ssh connection refused port 22 :: github

I have a strange problem. On one of my dev server i use git clone command to connect to github. I have set up my keys already. The connection between the dev server and github is intermittent. When ...
-1
votes
1answer
38 views

Changed the port in Debian and forgot [closed]

A dedicated server with Debian 7 Changed the port in Debian (/etc/ssh/sshd_config) and forgot. How do can I find the port number?
1
vote
1answer
75 views

SELinux remove or leave the old SSH port label?

I am following this (basic) security guide to change my Server's SSH port to something else. It says: $ semanage port -a -t ssh_port_t -p tcp 2345 #Change me ...which would add a new label on top ...
0
votes
0answers
202 views

Change default ssh port on Fedora EC2

I have changed my /etc/ssh/sshd_config adding multiple ports for it to listen: $ grep Port /etc/ssh/sshd_config Port 22 Port 80 Port 443 However, after a service sshd restart (which shown no ...
-1
votes
3answers
148 views

Hosting a web service on port 22… Is that possible? frowned upon? [closed]

I am trying to resolve a client's problem and I had an (bad?) idea... The problem : Client has two web servers running behind his wan router. (physical servers in his building) Each server hosts a ...
6
votes
3answers
310 views

What is the difference between these 2 iptables rules?

Trying to allow incoming ssh traffic on port 22. Default behavior is to DROP all incoming traffic. I came across 2 articles on how to allow traffic. However, they are different. ## open port ssh ...
0
votes
1answer
52 views

Securing SSH for cross site access

We have 2 servers, one each located at different geographical locations where we are considering using an rsync script to keep certain folders in sync. Our setup disables root login and password ...
-3
votes
1answer
706 views

Port 22 is not responding [closed]

I'm trying to make the jump to VPS from shared hosting for better performances and greater flexibility, but am stuck with the fact that I can't access the machine via ssh. First of all, the machine ...
0
votes
1answer
50 views

Blocking Port 22 From Unknown IPs Security Measure

A server I'm working on has blocked all unknown addresses from accessing port 22 (via a firewall). An IP address has to be added to the firewall first via a control panel (or command line) before it ...
0
votes
1answer
556 views

Block SSH access from specific countries

I found this handy script online, and would like to modify it to only block SSH access but I don't know anything about iptables and Im afraid Ill kill my system as i have no physical access to it. ...
-1
votes
2answers
49 views

Why adding some port to IP address redirect to another IP? [closed]

I have a ubuntu server inside a router. And I have setup a DDNS (for example, example.com is the domain name) to point to my dynamic IP. The port 22 is forwarding to port 22 of ubuntu server, configed ...
0
votes
1answer
73 views

SFTP source port used by client

What port is used by a client when connecting to SFTP server listening on port 22? In which range can be that port? Does that range depend on client application used, or it depends on operating ...
1
vote
1answer
971 views

how to solve the error: “ssh_exchange_identification: connection closed by remote host”

I have been researching for hours and still unable to solve my problem. This error "ssh_exchange_identification: Connection closed by remote host" has many proposed solutions but none seem to solve ...
1
vote
1answer
100 views

Directory Listing (ls) error ONLY in port 22 (SFTP)

Using SFTP I suddenly get this result: Status: Connecting to 64.207.146.82... Response: fzSftp started Command: open "root@64.207.146.82" 22 Command: Pass: ********* Status: Connected to ...
0
votes
1answer
109 views

Cannot SSH from school [closed]

I have 2 servers, one that connects to SSH via port 22, and the other connects on port 9450. Now my only issue is I can SSH to neither of them from school (I am using puTTy and FileZilla)! This ...
5
votes
1answer
1k views

Issue with SSH on Ubuntu - Local connection ok, remote connection - Is it me or my ISP?

I have an issue with a server running Ubuntu 12.04, I am trying to set up a remote connection so I can access the server at my work from out of town. I have installed the SSH server and all that ...
-2
votes
6answers
322 views

How to reject HTTP access to SSH port

I changed my server SSH port to something else than port 22, however when I access to domain.com:<ssh-port> I can see an output of SSH-2.0-OpenSSH_5.8p1 Debian-7ubuntu1 I want to block ...
0
votes
1answer
98 views

Why am I still able to get a response on port 80 when I've shut down all ports except 22?

My goal is to shut down absolutely all ports on my Ubuntu server, except port 22 (SSH). I followed the instructions from this question here on Server Fault, plus instructions here and here. However, ...
4
votes
1answer
2k views

Selecting Interface for SSH Port Forwarding

I have a server that we'll call hub-server.tld with three IP addresses 100.200.130.121, 100.200.130.122, and 100.200.130.123. I have three different machines that are behind a firewall, but I want to ...
-2
votes
2answers
221 views

can't ssh from port 22 to example.com:8080

-I have opened port 8080 and I can access it with 192.168.1.40 and also no-ip domain -Installed vsftpd -Opened port 80,8080,20,21,22 and 11000-11100 However I can't ssh to it. I have another sever ...
1
vote
1answer
215 views

ssh + multiple ssh connection failed

I have 47 Linux client machines and one Solaris server machine (all Linux client machines are red-hat 5.1) all clients perform ssh connection to the server in order to verify if ...
3
votes
3answers
3k views

How to assign a hostname to SSH tunnel

I'm using ssh root@my.server.ip -g -L 4321:localhost:28017 to establish a tunnel from my MacBook to my dedicated server at my hosting provider. It works well. Now I want to access several admin sites ...
2
votes
1answer
89 views

Can I change the port for SSH on a hosted server?

I am changing over to a hosted server and I want to use non-standard ports for SSH. Is this possible? Wouldn't I have to have access to the router, in order to forward ports?
17
votes
9answers
100k views

Check if port is open or closed on a Linux server using SSH?

How can I check if a port is open or closed on a Linux server (running Cent OS 5 and cPanel) using SSH? EDIT: And how can I open the port if it is closed? Thanks, James
3
votes
4answers
656 views

How forward one port to other using ssh or any other tool?

I have a legacy application listening on port 5050 bound to localhost interface (i.e. 127.0.0.1). This app runs on a Linux box (an embedded system). I have an app, lets call it App C that runs on PC ...
-1
votes
2answers
90 views

SSH using one port(client) to another port(server) [closed]

I'm in a college. My college blocks all the ports except 80 and 443. My ssh server runs at the default port. So is there anyway that I can access my ssh server from my college. I badly need a ...
0
votes
2answers
102 views

Tunnel SSH “Client -> Firewall -> Server1 -> Server1.2”

I need to make a tunnel from a client box to a server. The problem is that there are 2 boxes between them: CLIENT --- FIREWALL ---{ SERVER1 --- SERVER1.2 } CLIENT ============================= ...
0
votes
2answers
39 views

Help: Enable Ports

I'm trying to enable a few ports, as I have a php script that uses sockets. I added the following to my httpd.conf file: Listen 6112 Listen 6113 However, when I execute my php script, it says the ...
1
vote
3answers
184 views

Assistance with opening additional ports - CentOS

I'm trying to open an additional outgoing port on my VPS (port 5900). Here is my /etc/sysconfig/iptables: # Generated by iptables-save v1.3.5 on Sun Jul 10 11:27:12 2011 *mangle :PREROUTING ACCEPT ...
4
votes
1answer
4k views

How to allow remote connections from non localhost clients with ssh remote port forwarding?

I have a system say "privatesys". I am trying to give access to its web server through a remote proxy using ssh remote port forwarding like below. Private sys name: privatesys Port exposed: 80 The ...
0
votes
1answer
43 views

Problem during SSH

I am trying to run ssh command from one machine to another and gets the following error message ssh: connect to host 10.22.254.70 port 22: Connection refused It is able to ping the same machine ...
1
vote
2answers
546 views

Restrict access to specific ports

I launched keep launching EC2 instances and for some reason i keep getting this email and then the server amazon shuts the server down...How do i restrict access to the port in question... here is my ...
0
votes
5answers
163 views

Listening on port 22

Is there any way to listen in on port 22, on my server, to see if anyone submitted any commands while ssh'd into my server? Or rather, output what commands were submitted (and the ip address of who ...
0
votes
2answers
464 views

rsync: ssh unknown option -p2122

I run this command to replicate data from one server to another. It's been working for a quite a while. I have this setup as a cron job. Yesterday for some reason, it stopped working. I ran it ...
0
votes
1answer
633 views

Forced per-user ssh port

I want to allow access to each user on a server through a different port. For example; user1 can only be accessed by ssh through port 2201, user 2 can only be accessed through port 2202. I have ...
4
votes
3answers
171 views

Run both sshd and httpd SSL on port 443 [closed]

Is it possible by anyway (maybe with inetd) to make 443 port serve both as sshd and as httpd SSL? Perhaps by analysing the request, if request is "CONNECT", then let httpd handle the connection; if ...
0
votes
0answers
642 views

changing ssh port. Useful?

i will buy a dedicated server soon. I would like to know if changing the default port of ssh may be useful for security or it's completly useless. And if it's useful which ports range should I change ...
14
votes
6answers
7k views

Is there an equivalent to ssh-copy-id for Windows?

Is there any equivalent or port of ssh-copy-id available for Windows? That is, is there an easy way to transfer SSH keys from a local machine to a remote server under Windows? In case it helps, I'm ...
0
votes
1answer
976 views

How to open 3128 port using ssh on centos

hi everyone is there any way to open 3128 port (which is closed by firewall) using ssh? i have root access to the server thnx