Changing SSH default port from 22 to 8080

Hi all,
I have deployed SSH on my home solaris 10 x86 machine and it was working fine through the default port 23.
But the problem is that i can't connect to it from work as the firewall blocks outgoing SSH traffic. So i want to change the default port from 23 to 8080.
i changed the value of Port in /etc/ssh/sshd_config.
Then i ran the command
/usr/lib/ssh/sshd -f /etc/ssh/sshd_config
because as far as i know from the man pages it will cause the daemon to reread the configuration file thus the new value for port but still it didnt' work.
Also i tried the command
/usr/lib/ssh/sshd -p 8080
but didn't work also
I tried to restart the ssh daemon after both commands but still the same result.
Would anyone please help me with this issue as i still don't have much experience in solaris.
Thanks in advance.

Ok, So i installed lsof, but
When i ran that command i got this output
bash-3.00# lsof -M | grep 8080
sshd 1085 root 3u IPv6 0xd43e21c0 0t0 TCP *:8080 (LISTEN)
it seems that sshd is occupying port 8080 but still ican't login from a remote machine.
When i try it asks me to enter the username and then displays a messaing "Using keyboard-interactive authentication" then asks for password, When i enter the password it gives me "Access denied" although iam sure this is the right password.
When i try to connect to port 22 things go fine and i can login with the same user "root" with no problems (i know accessing remotely using root is not secure but that is not the problem for the moment)
So i did that
ps -ef | grep ssh
root 1085 1 0 19:05:07 ? 0:00 /usr/lib/ssh/sshd
root 1093 1 1 19:05:51 ? 0:00 /usr/local/sbin/sshd
Note that the PID for the process grabbing the port is the same for /usr/lib/ssh/sshd
so is that the ssh daemon or is it /usr/local/sbin/sshd ????
Please advise. Note that iam not experienced in solaris so please take it easy with me.
Thanks

Similar Messages

  • IOS Zone firewall (ZFW) & changing SSH listening port

    I'll have to check into the deetails again but I recall there being a way to change the listening port for SSH.  Not only do you have to configure SSH itself to listen on a new port but I think there was something about making the inbound interface part of a rotary group or something. 
    Anyway, my question is more about how the zone firewall reacts to this.  If I have inspect set for SSH, (or pass) and yet change the default port for it, does the IOS still know to take the configured action on the protocol?  I'll try to test this myself once I have an opportunity but may not be able to for several days, plus if anybody has anything further to add regarding any other implications this port change mgiht have, please share
    Thanks! 

    Hi Julio,
    You are ever helpful sir Howver, things are not making sense.
    Ok so to take it from the top. So far I have done the following:
    Router(config)#ip ssh port 2340 rotary 1
    Then:
    Router(config)#line vty 0 123 (123 = max # of vty lines, my actual # is different)
    Router(config-line)#rotary 1
    This of course does not make SSH on port 2340 work from the Internet zone to Self as I have not yet modified the firewall nor done the ip port-map command. It does work from the LAN side to Self since that zone-pair is more forgiving, however, it works on both 22 and 2340 which I thought odd since I thought the ip ssh command changes the SSH server listening port.
    I have not yet permanently set the ip port-map command. However I ran it once and then did a sh ip port-map ssh
    This showed system defined ssh port maps for tcp and udp on 22, and then my user defined one for tcp port 2340. Interesting that the system-defined ones are both UDP and TCP - I thought SSH was TCP only.
    According to the IOS command referendces (for release 15.2), I should not be able to remove the system-defined port map entries as it would give an error. However, I did no ip port-map ssh port tcp 22 and the same for the UDP entry and they disappeared - so now for sh ip port-map ssh I get no results returned. Yet, SSH still works on 22 and 2340.
    Be that as it may, after some further testing I've concluded that with or without use of the ip port-map ssh port tcp 2340 entry, SSH works (from LAN to Self) on either port 22 or 2340. It seems ip port-map has no effect on the SSH server itself (?). Or perhaps PAM is overridden by the ip ssh commands?
    So at that point I decided to stop testing, not doing anything with firewall yet, until I understand things better. So far, the IOS is very confusing in it's behavior.
    Changing the SSH server's listening port via ip ssh command to something other than 22 seems to not actually change anything, it just adds that port in addition to 22.
    Port-application mapping appears to have no effect on the SSH server (I have not tested whether ip ssh overrides PAM or vice versa)
    So far there seems to be no way to actually change port 22 usage - even "deleting" the PAM entry for ssh via 22 has no effect.
    Confusing!

  • How to change the default port of webdispatcher

    Hello Everyone,
    We wish to  know to how to change the default port of SAP webpatcher port from 81$$ to 80.
    Appreciate your response.
    Thanks,
    Vadi

    Hello Vadi
    you have to change the PORT value in your profile parameter from 81$$ to 80
    icm/server_port_0 = PROT=HTTP,PORT=81$$ to
    icm/server_port_0 = PROT=HTTP,PORT=80
    Also, in SMICM, then change http service port and activate it and above parameter will require SAP restart
    $$ is used generally to accomodate multiple port services running in SMICM and so as to avoid the parameter setting according to instance number of any system.
    thanks
    Bhudev

  • Problem when I tried to change weblogic listen port from 7001 to 80

    HI! I have problem when I tried to change weblogic listen port from 7001 to 80. When I changed from 7001 to 7777 then all works ok! But why not on 80? With apache all works ok on 80 too.
    I restart my weblogic server and then I have following errors.
    <2009.1.4 16:02:13 EEST> <Notice> <WebLogicServer> <BEA-000365> <Server state ch
    anged to STARTING>
    2009.1.4 16:02:14 oracle.as.jmx.framework.PortableMBeanFactory setJMXFrameworkPr
    oviderClass
    INFO: JMX Portable Framework initialized with platform SPI "class oracle.as.jmx.
    framework.wls.spi.JMXFrameworkProviderImpl"
    2009.1.4 16:02:15 oracle.adf.share.config.ADFConfigFactory cleanUpApplicationSta
    te
    INFO: Cleaning up application state
    <2009.1.4 16:02:22 EEST> <Notice> <Log Management> <BEA-170027> <The Server has
    established connection with the Domain level Diagnostic Service successfully.>
    <2009.1.4 16:02:22 EEST> <Notice> <WebLogicServer> <BEA-000365> <Server state ch
    anged to ADMIN>
    <2009.1.4 16:02:22 EEST> <Notice> <WebLogicServer> <BEA-000365> <Server state ch
    anged to RESUMING>
    <2009.1.4 16:02:22 EEST> <Emergency> <Security> <BEA-090087> <Server failed to b
    ind to the configured Admin port. The port may already be used by another proces
    s.>
    <2009.1.4 16:02:22 EEST> <Error> <Server> <BEA-002606> <Unable to create a serve
    r socket for listening on channel "Default". The address 85.254.224.235 might be
    incorrect or another process is using port 80: java.net.BindException: Address
    already in use: JVM_Bind.>
    <2009.1.4 16:02:22 EEST> <Critical> <WebLogicServer> <BEA-000362> <Server failed
    . Reason: Server failed to bind to any usable port. See preceeding log message f
    or details.>
    <2009.1.4 16:02:22 EEST> <Error> <Server> <BEA-002606> <Unable to create a serve
    r socket for listening on channel "Default[2]". The address 127.0.0.1 might be i
    ncorrect or another process is using port 80: java.net.BindException: Address al
    ready in use: JVM_Bind.>
    <2009.1.4 16:02:22 EEST> <Error> <Server> <BEA-002606> <Unable to create a serve
    r socket for listening on channel "Default[1]". The address 192.168.0.102 might
    be incorrect or another process is using port 80: java.net.BindException: Addres
    s already in use: JVM_Bind.>
    <2009.1.4 16:02:22 EEST> <Notice> <WebLogicServer> <BEA-000365> <Server state ch
    anged to FAILED>
    <2009.1.4 16:02:22 EEST> <Error> <WebLogicServer> <BEA-000383> <A critical servi
    ce failed. The server will shut itself down>
    <2009.1.4 16:02:22 EEST> <Notice> <WebLogicServer> <BEA-000365> <Server state ch
    anged to FORCE_SHUTTING_DOWN>
    2009.1.4 16:02:22 oracle.adf.share.config.ADFConfigFactory cleanUpApplicationSta
    te
    INFO: Cleaning up application state
    2009.1.4 16:02:22 oracle.adf.share.config.ADFConfigFactory cleanUpApplicationSta
    te
    INFO: Cleaning up application state
    Best regards!

    Debuger,
    It does not matter which WLS version I am using (although I'm using 10.3, the one that comes with JDev 11g).
    The problem is that SOME OTHER PROCESS on your machine is listening on port 80. Guess you need to go to the Microsoft forums to find out how you can tell what that OTHER, NOT WLS process is.
    John

  • Changing the default port 1433 in SQL 2005 on an ECC 6.0 system

    Hello everybody,
    There is a requirement to change the default port of MS SQL 2005 from 1433 to a different port.
    I am using SAP ECC 6.0 running on an ABAP stack. I would like to know what changes need to be done from the SAP end to achieve it.  Any pointers in this regard would be helpful.
    Regards
    Dinesh K

    <b>Sizing</b>
    Hardware sizing should be completed by your SAP partner. Its based on many things. Users, modules, storage volumes, peek, BP, workloads etc etc.
    You can do the 'noddy' version with the sapsize on OSS. The output from this is in 'SAPs' you could look up std systems bench marks and get something 'like' it. Else submit the results to the hardware vendor of your choice and they will do it for you.
    <b>System Redundancy</b>
    Depends what you are trying to do.
    MSCS is a fail over HARDWARE only solution. ie if you want to patch or take a node out of service you can by 'failing over' the services on it to the other node. If you get a DB problem MSCS can not help you at all.
    Log shipping gives you 'rapid' recovery options for SQL(and there in SAP). The way this normally works is via either manual or automatic log-shipping to a 'standby' system with SQL/SAP loaded on it that can be brought online if you get a problem with the main system.
    A well planned system will have fail-over and recovery capabilities, ie it will use BOTH.

  • Changing Tomcat Default Port.

    Hi.... All
    How can i change the default Port (8080) in Tomcat.
    In Which file do i need to change this manually.
    thanx

    change this on the server.xml,
    the connector part.
    <Connector port="8080" maxHttpHeaderSize="8192"
    the port attribute here

  • How can we change the default port 50000 of SAP WAS?

    Hi,
    1. How can we change the default port 50000 of SAP WAS?. Can we assign 8080?
    2. Can we assign default context ("/") for the application we have developed?
    Regards,
    Sudheesh

    Hi Sudheesh,
    just refer this help..
    http://help.sap.com/saphelp_nw04/helpdata/en/5b/82d3c3ee9691418e6b0281f933a37d/frameset.htm
    U have to restart the sever after changing the port.
    One more main thing here , no other services must not be using the port.
    It will cause port binding exception.
                  Regards
                  Kishor Gopinathan

  • How to Change a Default Value from Drop Down Box displayed in Web Dynpro?

    Hi,
    How to Change a Default Value from 'High' to 'Low'  in a Drop Down Box for RANGE field displayed in Standard Web Dynpro Component.  I saw a Default Value set for a RANGE field  in View Context When I select that field and click on Display. I am seeing Default Value set it to 'HI'. Please let me know how to change from HIgh to Low.
    I appreciate your help!
    Thanks,
    Monica

    hi,
    use the set_attribute( ) method now to set the attribute with a particular key eg HIGH in ur case
    // u can use the code wizard( control +f7) this code will be auto generated when u select the
    //radio button to read the context node
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
      DATA ls_cn_node TYPE wd_this->element_cn_node.
    * navigate from <CONTEXT> to <CN_NODE> via lead selection
      lo_nd_cn_node = wd_context->get_child_node( name = wd_this->wdctx_cn_node ).
    * get element via lead selection
      lo_el_cn_node = lo_nd_cn_node->get_element(  ).
    * set single attribute
      lo_el_cn_node->set_attribute(
          name =  `ATTribute name.`
          value = 'LOW' ).
    it will solve ur query ..
    also refer to this component
    wdr_test_events -> view dropdownbyidx and dropdownbykey ->method name onactionselect.
    regards,
    amit

  • How do I change the default setting from Pages to MS Word for Mac?

    How do I change the default setting from Pages to MS Word for Mac?

    https://discussions.apple.com/message/13008817#13008817

  • How do I change my default reader from VU 360 to Adobe Reader?

    How do I change my reader from VU360 to Adobe Acrobat? My default reader on my downloads has been changed to VU360 and I don't know how that happened. I don't want VU360. I want Adobe Acrobat. I changed it in the applications but VU360 still comes up as the default reader. Is there another place that makes VU360 the default reader?
    == This happened ==
    Every time Firefox opened
    == VU360 got accidentally loaded and now it's taken over

    I have a similar problem. I need to change my default reader from Adobe Acrobat 9 to Adobe Reader. How do I do that?

  • How do i change my default browser from yahoo to safari ?

    how do i change my default browser from yahoo to safari ?

    You may be mixing two things.
    Safari does not really have a home page.
    You set your home page on these pref (see pic below). In the pic below my home page is zip, zero, nada.
    You set your search engine prefs via the Search option from within Safari preferences.

  • Change de default camera from the lock screen in iOS 5

    Is there a way to Change de default camera from the lock screen in iOS 5?
    There are way better camera apps (camera+) than de default in the lock screen in iOS 5, is there a way to change this?

    No.

  • How do I change my default browser from Safari?

    How do I change my default browser from Safari?

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Can't be done.

  • I have a Windows Server 2008 R2 system. I am using Adobe Acrobat XI Pro. I am looking for the place where I can change the default font from Minion Pro to Calibri? Tools, Content Editing, Formatting

    I have a Windows Server 2008 R2 system. I am using Adobe Acrobat XI Pro. I am looking for the place where I can Change the Default font from Miinion Pro to Calibri?
    Tools, Content Editing, Formatting

    You can't change it.
    On Tue, Jan 13, 2015 at 11:22 AM, tonywaidmann <[email protected]>

  • How to change the default directory from within SQL*Plus ?

    Hello,
    I want to change the default directory directly from within SQL*Plus to be able to launch my command files with simple instructions like :
    @my_command.sql
    If I haven't launched SQL*Plus from the directory containing the file my_command.sql, how do I change the default directory to the directory of my command files ?
    I've searched through the Oracle documentation, there's no SET DEFAULTDIR or something like that. When I do a SHOW ALL, there's no variable containing the default directory.
    If you have an idea...
    regards,
    Jérôme.

    Hi Jérôme (J鲴me ?),
    You cannot directly do that, but you can use @@ instead of @ to run subscripts in the same directory as the superscript
    # head /tmp/tl30/xxx/[xyz].sql                    
    ==> /tmp/tl30/xxx/x.sql <==
    prompt call y
    @y
    prompt call z
    @@z
    quit
    ==> /tmp/tl30/xxx/y.sql <==
    prompt i am in y
    ==> /tmp/tl30/xxx/z.sql <==
    prompt i am in z
    # pwd                                             
    /root
    # sqlplus -s scott/tiger@lsc62 @/tmp/tl30/xxx/x.sql
    call y
    SP2-0310: Datei "y.sql" konnte nicht geöffnet werden
    call z
    i am in zKind regards
    Laurent Schneider
    OCM DBA

Maybe you are looking for

  • ITunes Unexpectedly Re-Opens after Closing

    I just reformatted my laptop and upon installing iTunes 6.0.3.5, I noticed that iTunes, after closing it, will relaunch a few times, usually two. I figured maybe it was something with the software version, so I just updated to 6.0.4 and it does the e

  • Transferring music from ipod to library

    I have some songs in my ipod that I want to put into my itunes library. For some reason, I cannot do this. Is there a way to do this? Thanks

  • Pivot Table - Rows displayed

    Hi, I have a pivot table report which display complete report instead of showing 25 rows first. Due to large number of rows we are getting Out of memory issue. Is it possible to display 25 rows first in Pivot table. Please help - as users are unable

  • Transport hierarchies

    Hi Friends, This is my situation, we have several hierarchies that we wish to transport from Dev to QA and PRD environments. When we attempt to transport these hierarchies, only the key comes across, the texts do not. This is causing them trouble whe

  • Reconnecting a renamed PSD

    I've imported a layered PSD as a comp. The linked PSD has been renamed. After Effects says it can't find any layers. If the PSD was named the same, but moved to a different directory, AE would auto-find all the other missing layers once I succesfully