General :: Change Ssh Defualt Port 22?
May 10, 2011i want to change ssh defualt port 22 can you suggest which port i need to use for ssh so prevent it from hackers
View 4 Repliesi want to change ssh defualt port 22 can you suggest which port i need to use for ssh so prevent it from hackers
View 4 RepliesVERY new to linux, erm but I have an issue that needs solving!I recently moved to university, where their network blocks sftp port 22, this means that I cannot connect to my FTP server which is running a version of linux.Now I've got this ftp server connected to a seedbox and it was created using the following walk through..Code:I have written this guide for a friend, but I though it would be useful for others as well.
There are several guides floating around, but I found that most always cock up in some way. This one is tried and tested to work on Debian Etch (on an OVH rps, but should apply to most servers).If there is a new stable release of rtorrent/libtorrent then I will update this guide to show you how to update it (without reinstalling the whole server).
At the bottom there are also instructions to install ftp access & some network monitoring software.Basically, I would really like someone to be able to construct the commands on how to change the listen port for sftp connection on linux or add another port to the list that Linux would use so that I could put in through putty.
How can I change the default port of ssh that is 22? Because of security issue I just want to give some other port.
View 3 Replies View RelatedI am looking to set up a system that will bring in an e-mail on a port like 4082 then sent it out to a standard e-mail port. this is a fire wall issue. I am looking for the best software I can use on an Ubuntu-Desktop platform to accomplish this and an idea on how to set this up?
View 6 Replies View RelatedI edited "sshd_config" file and changed port 22 to a new port. After I restart ssh, it listens on port 22 and the new port. How can I disable SSH to listen on port 22? I'm using Debian.
View 6 Replies View Relatedhow could I set a defualt boot? Like, instead of asking which OS to boot in from at startup, it just loads into a default one. And if you want to use the other one, you have to go back and change the default boot.I tried boot settings, but it only lets me choose from a network, USB, DVD/CD, or normal. Which is just the grub list of OS's to choose from.
View 8 Replies View RelatedI just got installed ubuntu karmic koala 9.10 on my laptop and fiddle too much with the system configuration files. Now I notice that most of my permissions are not working in my login. How do I restore my Ubuntu setting, which are as good as freshly installed OS and also Not disturb any of my currently installed application on the system ??Note: I repeat "I really dont want to disturb my of my currently installed applications on my ubuntu and yet want to restore my system to freshly installed OS settings. All the applications that I have installed is a whopping 3 days of googling and hardwork in getting them working "Some of the freaky things happening in my system:
1. I am not able to see Battery notification and Network notification y workaround: execute "sudo /usr/bin/gnome-power-management" and "sudo /usr/bin/nm-applet". I am not able to lock my screen3. I am not able to access my windows drive. Which otherwise when worked normally used to prompt me to enter my password, post authentication I was able to access my drive
Once you have VLC open, select file, it only lists certain file types. Now if you go down to the bottom you can tell it to use other types (like *.*). How does one set it so one does not have to go down and change the file types every time? So that it shows all file types, all the time, by default.
View 1 Replies View RelatedI installed ZTE MF 626 modem in my F10 with kernel 2.6.27.12-170, i run usb_modeswitch and so far things happened normally. Watching through /var/log/messages it says that F10 detects two port device for this modem: ttyUSB1 and ttyUSB2, and in the sequence it disable port ttyUSB1 BUT Network Manager still set this port.I mean, when i connect via wvdial appointing to ttyUSB2 i get connection, but Network Manager fails to do it appointing to ttyUSB1. How to change device port in Network Manager?
View 1 Replies View Relatedi am trying to edit sshd_conf files to change the "#Port 22" to "Port 22" from a script.
I have tried this many different ways.
sshs1='s/#Port 22/Port 22/g'
sed $sshs1 /home/l/Desktop/test
the reason i have it as a string in this instance is because $sshs1 gets a variable, but im not working on that right yet. I've tried changing the ' to ` and ". this is what i get:
sed: -e expression #1, char 7: unterminated `s' command
sed: -e expression #1, char 8: extra characters after command
sed: -e expression #1, char 8: extra characters after command
"
sed: -e expression #1, char 7: unterminated `s' command
i know it may have to do with my regex, but i cant seem to find a decent tut.
I tried to make "ssh tunneling", but failed and got this message.
Quote:
Administrator@windstory-PC /
$ ssh -R 7869:localhost:7869 windowsstudy@192.168.0.4
windowsstudy@192.168.0.4's password:
Warning: remote port forwarding failed for listen port 7869 Last login: Wed Jul 21 01:56:04 2010 from 192.168.0.2 -bash-3.2$
1. system environment
192.168.0.2 - windows 7 + copssh
192.168.0.4 - centos 5.4 x86 + openssh
2. Guide for setting "ssh tunneling"
[URL]
3. Added this to sshd.conf
Quote:
AllowTcpForwarding yes
4. "netstat -na|grep 7869" at 192.168.0.4
Quote:
[root:maestro:~]# netstat -na|grep 7869
tcp 0 0 0.0.0.0:7869 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:7869 127.0.0.1:53539 ESTABLISHED
[code]....
5. result of "ssh -vvv -R 7869:localhost:7869 windowsstudy@192.168.0.4"
Quote:
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
[code]....
6. I added 7869 for telnet service as follow;
Quote:
mytelnet 7869/tcp # My Telnet server
How do i change the ssh port on my redhat 5 server. Can you tell me how to do it through the gui and through cmd line?
View 5 Replies View RelatedI installed Apache2 on Redhat EL 5. I am trying to change the default port (80) to 85. I tried editing httpd.conf and changed
Listen 80
to
Listen 85
It ditn't change any thing. 'netstat -tuapn | grep :85' returns nothing.
I go in using nano /etc/ssh/sshd_config I change the port number.. I then restart ssh service restart.. I then run netstat -tupln and it still shows ssh as port 22!i am not sure what I am doing that is incorrect.Do I have to remove the # < ? I go to redit it and its still showing 2222 nano /etc/ssh/sshd_config ?
View 18 Replies View RelatedI have a program which requires running on port eth0. My current connection is named eth7. how can I change this? I went to /etc/network/interfaces but did not see the connections for eth0 or eth7 in that location. I also tried to change it in the "Network Manager" but that just broke my connection and returned errors. What Can I do?
View 7 Replies View RelatedWhen setting up a new pop3 accounr in evolution, I dont see any option to change the port, my pop3 server requires port 110.Is there a way to check or alter this in Evolution
View 1 Replies View RelatedI wish to use the VNC server built in to the Ubuntu to easily access it from other computers on my local network. I need to skew the VNC Server port off of the normal 5900 to something else because I am using VNC to access several computers (sometimes simultaneously) so each VNC server needs to be set with a different port #. At this point it is all local subnet connections with no incoming internet access and I am not worried about security.
View 2 Replies View RelatedI have Linux system with 6x500 GB sata drives on LVM. I want to change 1 of the disks with larger - 1 TB. I don't have available free sata ports, so I'll add pcie sata controller. I'll add the 1 TB disk to the pcie controller and will use "pvmove" to transfer the PEs from one of the 500 GB drives to the new 1 TB. Then I want to remove the 500 GB disk from the LVM. I want to remove the physical disk from the box and to place the 1 TB disk on its place. But I don't know if the LVM will recognize the disk? I want to remove the pcie controller from the box because the motherboards sata controller is better.
View 1 Replies View RelatedI am using Fedora 10 and I need to change the defaults that get set on the serial port.I know how to do what I need to in Windows, but I can't seem to figure it out in Linux.
Windows Settings:
Bits/Second '115200'
Data Bits '8'
Parity 'None'
Stop Bits '1'
Flow Control 'None'
Receive Buffer 14 (HIGH)
Transmit Buffer 16 (HIGH)
I need to change the port numbers of samba. Our ISP is blocking the ports 445 and 139. So i need to run samba in a different port.
View 1 Replies View RelatedI want to change my ssh port from the default 22 to something else. I did the following: vi /etc/ssh/sshd_config; uncommented Port 22 and changed it to the desired port number. After that I run service sshd restart for the change to take an effect. Now, when I want to login into the new port I receive this message - Network error:Unable to route to host. When I change the port back to 22, I will be able to login again.
View 6 Replies View RelatedI want to do a simple port redirect, i.e. whatever comes trough whatever interface on port AAAA will get redirected to port BBBBI thought that iptables -t nat -I PREROUTING --source 0/0 --destination 0/0 -p tcp --dport AAAA -j REDIRECT --to-ports BBBBhowever it doesn't work, e.g. nc -v -w2 -z localhost AAAA gives:
nc: connect to localhost port AAAA (tcp) failed: Connection refused
while
nc -v -w2 -z localhost BBBB
[code]....
I've just had to change the MOBO and trying to get the serial port working, I see from previous posts there are some problems lurking in the past.
setserial -g /dev/ttyS*
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
but I'm not seeing anything from a GPS receiver in NMEA at 4800 no par 1 stp I know that was working about a year ago. I think udev was not helping ,as I was getting permission denied to the com port, I added myself to group dialout. and no message on startup now
I need to be able to talk to a piece of kit with 9600 baud and nothing. I have win32 s/w to drive it , but it falls over in wine. My laptop still has win7 on it in a tiny partition but no 9w d connector and I'm waiting for a USB converter cable. Too many variables ! I'd forgotten all the hassle of having to install drivers just to get basic things running. But as the stupid thing couldn't manage using the driver for my NIC, I was stuck with hyper-terminal, and nothing from the GPS board @4800 or another piece of equipment running at 9600. I suspect the com port on the new mobo doesn't wan to play
I am playing around with transparent proxies, The current way I am doing things is the program makes a request to a computer on port 80, I use
Code:
iptables -t nat -A OUTPUT -p tcp --destination-port 80 -j REDIRECT --to-port 1234 to redirect to my proxy that I am playing with. the proxy will send out a request to port 81 (as all outbound port 80 are being fed back in to the proxy) so I want to do something like
Code:
iptables -t nat -A OUTPUT -p tcp --destination-port 81 -j DNAT --to-destination xxxx:80 The problem lies with the xxxx part. How do I change the destination port without changing changing the destination ip? Or am I doing this setup completely wrong,
I've got 10.04 on a headless server on a home network. I've edited /etc/ssh ssh_config and changed line 39 from:
# Port 22
to:
Port 30000
I then
user@server$: sudo /etc/init.d/ssh reload
from the host
user@desktop$: ssh servername -p 30000
ssh: connect to host servername port 30000: Connection refused
What am I doing wrong? I've also tried completely restarting the computer.
I will be setting up a web server at my house. It will be a simple page for my family to keep in touch and maybe some other stuff. Here is the problem: I believe my ISP blocks port 80. So when setting up the firewall and it list the normal port 80 am I able to edit to say 8080? I have a ddns already setup for my router and I am waiting for an email back from DynDNS.com on setting up a new domain to forward to my already setup hostname. I just need to get everything redirected to another port beside 80.
View 4 Replies View RelatedI used pptpd in cent os 5.4I want to change the default port 1723 of pptpd to 1813I chnage the pptpd port in service file to 1813 but ppp dont worknote : in ms vpn client i change the port to 1813
View 8 Replies View RelatedI have a WRTG54S Linksys router and Fedora 11 on my Asus EeePC and I would like to be able to access my Fedora remotely via ssh however I'm not sure which info and were do I need to change it in my router, also I want to be able to change the ssh port access is it from /etc/sshd_config ? My internet connection at home is via cable modem and with a connection that is always on. (no dialer)
View 2 Replies View Relatedcurrently i want to configure sendmail port number 25 im using these port numberalready how can i chage my senmdail port no.
View 2 Replies View RelatedI have scalix (sendmail) installed on my server and it is working very good but I need to change the smtp listening port because I am thinking that my sendmail is being used as a spam engine.
what/how I need to configure in order to change the smtp port?