Changing default SSH port 22

I am interested in making my computer more secure. I have my computer set up as a web server and also have FTP and Remote Access services enabled. Last week I had a security breach. Someone had placed a folder in my web directory which basically spoofed the eBay login page. I have since disabled FTP and Remote Access services. After doing so, there have been no more intrusions to date.
Since this incident I have been conducting research on the Web about tightening up security on my home computer. One of things suggested is changing the default port for SSH. What is the process involved in changing the port?
Any assistance is appreciated.
Roland

The default port numbers of the services stands in the file /etc/services. When you activate an service such as ssh, the service bind the port number, which stands in these file and listen at this port.
You could change the portnumber with: sudo vi /etc/services.
When you make changes in these file, is it better, when you comment the default entries and make new entries with your portnumbers.

Similar Messages

  • How to Change the Default SSH Port from Terminal ?

    How to Change the Default SSH Port from Terminal ?

    How to Change the Default SSH Port from Terminal ?
    now showing default SSH Port 22 i need change it pls help me how can do

  • How to Change the Default SSH Port from Terminal ? now showing default SSH Port 22 i need change it pls help me how can do

    How to Change the Default SSH Port from Terminal ?
    now showing default SSH Port 22 i need change it pls help me how can do

    How to Change the Default SSH Port from Terminal ?
    now showing default SSH Port 22 i need change it pls help me how can do

  • How do I change the SSH port in OS X 10.6?

    How do I change the SSH port in OS X 10.6?
    I added three additional Port options to my /etc/sshd_config. I have the same configuration. I restarted my Mac, but I can't access the Mac over the new ports. Running nmap shows no additional open ports.
    I have the same configuration on my linux server, so I'm pretty sure, the syntax is right.
    I didn't find anything in the documentation or here in the discussion group, so please help. Thanks

    Thanks, it took me some minutes to adapt, but it did solve my problem.
    My bad, I only searched in the "server product groups"... :-/

  • How do you change Terminal ssh port setting?

    My ISP changed its ssh port from 22 to 100. I've tried to change it in Terminal but it stays at 22. I opened etc/ssh_config as administrator, changed it there and saved the change, but it stays at 22. Any help would be much appreciated.

    My ISP changed its ssh port from 22 to 100. I've tried to change it in Terminal but it stays at 22.
    I just want to clarify which side's ssh port has changed to 100.
    Do you ssh into a server at your ISP and your ISP has changed their ssh daemon's port to 100, and now you need to know how to ssh to port 100?
    ssh -p 100 ...
    You can add an entry to *$HOME/.ssh/config* like the following:
    Host your.ips.server
    Port 100
    What this should do, is any ssh to that DNS name or IP address will go to port 100, all other ssh connections will go to port 22
    NOTE: the $HOME/.ssh directory needs specific restrictive permissions. See the ssh man page for what permissions.
    If you mean something else about "...its ssh port from 22 to 100...", then I would need more clarification.

  • How to change the default SSH port on Cat 6500 WS-SUP720-3B

    I have been net searching this question and I find answers relative to other Cisco products but not for the 6500 series. We are running
    entservicesk9_wan-mz.122-18.SXF17a.bin and would like to know how to change the default SSH listening port..
    Thanks in advance..

    Hi Neil,
    Normally this is achieved via the "ip ssh port rotary " but unfortunately, this command is not implemented on your platform so ssh will only work on port 22.
    Regards,
    Nicolas

  • Changing Default SMTP port in SAP Portal/Web AS java 6.40

    Hi all,
    We are configuring notification service in SAP Portal 6.0 with SPS 15. The SMTP server not using 25 port which is default for SMTP. when the server is trying to send notification it is pointing to IP address and 25 port. HOw can I change the default port to custom defined port in Portal/Web AS Java.
    Thanks in advance.
    regards,
    Kishore.

    Hi,
    may be that I’m a little bit to late,  but for the next one who has the same problem the solution could be interesting.
    You can change the default smpt port on Web AS Java in the server parameters of the java virtual maschine.
    Open the SAP J2EE Config-Tool. Goto „cluster-data | instance_<instance-id> | server_<server-id>“. In the tab „General“ insert unter „Java parameters“ the line
    „-Dmail.smtp.port=<port>“ where <port> ist the port number of your smtp server.
    Testet with SAP NetWeaver Portals / SAP NW 04s and SUN Java-VM but should also work with SAP NW 04.
    Greetings
    Jens

  • Change default communication port for BITS

    We are currently using ConfigMgr2007 (native mode).  We currently have a global GPO wihich is throttling BITS to 56kpbs during current business hours (8am-5pm).  It has been suggest to use QoS to controll the amount of traffic used by SCCM distributions
    to clients.  Seeing the BITS uses HTTP (80) and HTTPS (443) by default, is there a way to change the default ports used by BITS.
    I did find the following article (About Configuration Manager Client Installation Properties)
    that there are two setting which can change the default ports. 
    CCMHTTPPORT=
    CCMHTTPSPORT=
    Is there any other methods to change the Default port for BITS communication as a whole.

    Thanks Kent and Jason.  I know I posted in the ConfigMgr forum and you pointed my to the proper documentation.  We have non-Microsoft email archiving product which utilizes BITS which is the reason for the general question regarding BITS. 
    I did not see a dedicated forum for BITS so I posted here. 
    The documentation as suggested by Kent will assist with making changes for ConfigMgr if necessary.

  • How to change the default apex port

    hi,
    i am installed apex4.0 in EBS R12 DB with HTTP Server method. my apex is running from application server 10g and default port is 7777.
    URl: http://hostname:7777/pls/apex
    My EBS R12 running on http://hostname:8007.
    is it possible to change the apex port to EBS Apache port(8007) in R12 and finally i want to change above URL like this
    Before change : http://hostname:7777/pls/apex
    After Change : http://hostname:8007/pls/apex
    Thanks in advanace....

    How to Change the Default SSH Port from Terminal ?
    now showing default SSH Port 22 i need change it pls help me how can do

  • Changing ssh port?

    i'm trying to change the ssh port on my cisco 850 (ios v12.4(4)T4)
    i found the following instructions: http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a00804831de.html#wp1020480
    but the more i read on this, the more i think that is just talking about reverse ssh.
    i want to change the port the router listens for ssh sessions on. is this possible? should i just forward an outside port to the internal ip address on port 22?

    I have a Cisco 800 Series router running 12.3(7)T7 and have been successful in changing my SSH port using something similar to the information provided in the link that you referenced.
    I don't recall where I found the config info, but here it is:
    Router(config)# ip ssh port 2229 rotary 62
    Router(config)# access-list 129 permit tcp x.x.x.x 0.0.0.x any eq 2229
    Router(config)# line vty 0 4
    Router(config-line)# access-class 129 in
    The first line sets the SSH port to 2229 -- pick any port that doesn't conflict with something important
    The rotary group is arbitrary and is NOT tied to a specific VTY line number
    The access list prevents any other ports from accessing the router -- fill in the appropriate subnet and wildcard mask
    That's all there is to it. I've tried several simultaneous sessions using the same port number without a problem.
    The one thing to watch out for is AAA. If you follow the example shown in your link using the statement "login authentication default", you must enable AAA using "aaa new-model" and follow with a command specifying where the password(s) will be checked.
    This could be "aaa authentication login default group tacacs+ local" if you're using a TACACS+ server with a fallback to the local database on the router, or something as simple as "aaa authentication login default local" to use the local database on the router.
    Hope this helps!!
    Please provide feedback so that I know whether or not this worked for you.
    Thanks!
    vrs

  • How to change the default servcie port number to be checked for the IPS sig

    Dear
    i have an AIP-SSM (IPS) installed in a an ASA firewall.
    i have configured an access-list in the firewall to forward the traffic coming from the internet toward the internal server to be checked by the IPS module.
    but the case is that the services have to be checked is not the default services port numbers.
    http port is 8081
    oracle port is 2006
    and many other services.
    the question now, is how to change the default service number in the IPS in order to be checked by the corresponding service signatures?
    Thanks

    You would set those as part of the signature variables.
    http://www.cisco.com/en/US/docs/security/ips/6.1/configuration/guide/cli/cli_signature_definitions.html#wp1040009

  • How to change default port in iws 4.1 installed in Solaris 5.9

    Hi All,
    I had installed iws 4.1 in solaris 5.9
    Now , I want to change my default https port from 443 to 445 .
    Can anybody , Please let me know the proceudre how to do it ?
    Thanks for help in advance.
    Regards
    James

    Ya , Manish you are right IWS 4.1 is really old.
    But My application has been developed in past that is using IWS4.1 .
    Right now , we are not having budget to migrate it from IWS4.1 to IWS6.1.
    And the pointer for changing the port from magnus.conf is also correct but
    I need to make it default port.
    That means If would not specify any port number out of two port request goes to default one.
    Right now default port is 443
    But I want it to be 445
    Thanks
    James
    Message was edited by:
    write2jamesbond

  • ECC6 integrated ITS default port 8000 changed to http port 80

    We want the ECC6 integrated ITS default port 8000 changed to http port 80.  The integrated ITS Cat2 transaction is currently working on http port 8000.  I changed the icm/server_port_0(Instance Profile) and the ICM Monitor Active Services(smicm – services) to use port 80.  Cat2 transaction fails http fails after system restart.  I have reverted back to 8000 and all is now working again.  Is there more work that needs to be carried out or is port 80 is supported?

    is your application server in domain?
    if its in domain and when used sapides.<xxxx>.com if you get DNS not found, may be browser is looking up internet, put your domain in the exception in tools->internet options->connection->lan settings->proxy->advanced
    "<i>This server does not support HTTPS! It is therefore potentially unsafe to send your password</i>" i just a warning message and you should still be able to log on.
    (if you want to hide this info let me know)
    <i>and i never could logon into R/3 !!</i>
    do you also see a message that SSO2 is not configured? if yes follow the steps explained in OSS note no.517860
    when you say never could logon what happens,
    a) the field for user id pwd disabled? - click on the basic authentication button to get the log on pop up
    b) error messages?
    Regards
    Raja

  • Changing SSH port in Cisco switches

    Hello everyone 
    I have switches with different platforms 2950 , 3750 , 3560  ...... I want to change the port of SSH , but the command ip ssh port not found ... be informed that the IOS is ipservice type for layer 3 switches

    Sorry but you cannot change the port (tcp/22) used by ssh on Cisco switches.
    The best practices for securing it it include:
    - enforce ssh version 2,
    - apply an access-list to your vty lines,
    - set a timeout and retry lockout, and
    - possibly control plane policing.

  • Change default port number for web logic!

    Hi folks,
    In my scenario, i already installed obiee 11g with simple install along with web logic on windows xp machine.where this will creates default port number for all services. now i want to change default port number of web logic that is 7001 to some to other port number. how to change this ??.plss help me asap.
    regards,
    mahesh

    Refer tohttp://www.oracle.com/technology/documentation/1012_solaris/install.1012/install/ports.htm

Maybe you are looking for

  • Report on PIR changes

    Hi, Would like to know if there is a standard report on List of Purchase Info Records that were changed during particular period? or any tables we can fetch the same? Regards, Vengat

  • ResultSet AS datasource:Unexpected database connector error, Please Help?

    Dear all; I try to use a ResultSet as datasource in Crystal Reports,But an Exception Happend; First i execute the SQL Statment to get ResultSet Object called rs then try the following code: String tableAlias = reportClientDocument.getDatabaseControll

  • EXPORT 와 OPTIMIZER MODE

    제품 : ORACLE SERVER 작성날짜 : 2002-04-08 EXPORT 와 OPTIMIZER MODE 관계 ============================= PURPOSE 다음은 EXPORT와 OPTIMIZER MODE의 관계에 대해 알아본다. Explanation EXPORT시 5 분 걸리던 작업이 init.ora 에 optimizer_mode=first_rows 로 하면 20 시간이 걸리는 현상이 발생된다. 이는 BUG# 3916

  • Cell phone signal boosters

    No idea about legality but I've tried and failed to get a Vodafone Sure Signal running in our office, it just will not connect to the Internet!

  • Versions in Investment Management

    IM experts, I created some new planning versions, When I go to assign version in investment management, I go to new entries, I select teh program typy, but when I go to choose the Version they are not in the selection screen. Can some please help to