Sun Solaris 5.10 - SSH 1.1.3 - Not able to connect to the server by ssh - Urgent

Hello
I am not able to coonect to a server by using the code below.

If I try the same code on the server to connect it self, it works well. But when I try to connect to another server gives the error below. And I use the IBM Jdk when getting this error. Y at - it a setting to avoid this error.

Error:
INFO: Add /usr/jdk/instances/jdk1.6.0/jre/lib/ext/sunpkcs11.jar to the CLASSPATH of the extension
ConfigurationLoader
November 30, 2010 16:33:12 < clinit > com.sshtools.j2ssh.transport.publickey.SshKeyPairFactory
INFO: Loading public key algorithms
Error so that SFTP
java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
at java.util.StringTokenizer.nextElement(StringTokenizer.java:390)
to com.sshtools.j2ssh.transport.AbstractKnownHostsKeyVerification. < init >(Unknown Source)
to com.sshtools.j2ssh.transport.ConsoleKnownHostsKeyVerification. < init >(Unknown Source)
at com.sshtools.j2ssh.SshClient.connect (unknown Source)
at fileTransfer.connectToServer(fileTransfer.java:18)
at fileTransfer.main(fileTransfer.java:56)



Code:
public static boolean connectToServer (String serverIp, int serverPort, String userId, String password)
{
SFC SshClient = null;
try {}
System.out.println ("inside the Try to like his SFTP");
ConfigurationLoader.initialize (false);
System.out.println ("ConfigurationLoader");

SFC = new SshClient();
SFC. Connect (Ipserver, serverPort);
System.out.println ("SFC. Connect");

PasswordAuthenticationClient pwd = new PasswordAuthenticationClient();

pwd.setUsername (userId);

pwd.setPassword (password);

int checkAuth = sfc.authenticate (pwd);
System.out.println ("checkAuth" + checkAuth);

If (checkAuth == 4) {}
System.out.println ("AuthenticationProtocolState.Complete");

SFTP SftpClient = sfc.openSftpClient ();
sftp.Quit ();
SFC. Disconnect();
}
on the other
{
throw new Exception ("invalid user name or password for the user");
}
}
catch (System.Exception e)
{
System.out.println ("Error While SFTP");
SFC. Disconnect();
e.getStackTrace ();
Returns false;
}
Returns true;
}

Swapped

Sun Solaris 5.10 - SSH 1.1.3 - Not able to connect to the server by ssh - Urgent

@O.P.
Don't, don't.
In the future, to choose the most appropriate forum and make your post.
Swap shall be the same as the rude spamming.
I'm not aware of any web-site-of-value forum that would promote the permutation in its directions on the label.

... and for what is "Urgent"?
This web site is for the end-user community gather and discuss various topics in general conversations. Your time constraints are irrelevant. If you need real support for something, then log a support case and pay for a quick response.

See the FAQ in the link at the top of the page.

Tags: Oracle

Similar Questions

  • Not able to connect with the root via putty ssh account

    Hello

    I activated the lock mode and activated ssh as well.but I am still unable to log in using PuTTY says access denied. At the same time, I can able to connect to esxi console using the root account. Help, please.

    In the locked mode, you will only be able to connect through vCenter, not via SSH.

    See http://pubs.vmware.com/vsphere-51/topic/com.vmware.vsphere.security.doc/GUID-F8F105F7-CF93-46DF-9319-F8991839D265.html

  • vSphere ESXi ssh works, but not able to ping from the inside

    Hey man,

    I have problem with my ESXi 4.1 straing I just fresh installed on workstation 6.5 and assigned IP address. I am able to ping and ssh on my local network (another PC).

    But when I am trying to ping my local gateway of ESXi bash command line, I get the expiration time. Everything works including shared iSCSI and all but vMotion don't work. Is this firewall problem? I don't think that there inbuild firewall in ESXi.

    I am able to ping the local interface IP, but no gateway, see below.

    ~ # ping 192.168.1.1
    PING 192.168.1.1 (192.168.1.1): 56 data bytes

    -ping 192.168.1.1 - statistics
    3 packets transmitted, 0 packets received, 100% packet loss
    ~ # vmkping 192.168.1.1
    PING 192.168.1.1 (192.168.1.1): 56 data bytes

    -ping 192.168.1.1 - statistics
    3 packets transmitted, 0 packets received, 100% packet loss

    Greate that you are to the top and go.

  • Question about connecting to the DB without earphone in Solaris

    Am pretty new to Solaris and I know how it works in Windows - please help.

    When I set ORACLE_SID am NOT able to connect to the DB, but system@ORACLE_SID works fine.

    The DB is running, logged in the same terminal SSH, tried all the upper/lower case for SID

    $ export ORACLE_SID=ORCL
    $ echo $ORACLE_SID
    ORCL
    
    $ sqlplus
    SQL*Plus: Release 10.2.0.3.0 - Production on Wed Sep 10 08:36:40 2014
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    Enter user-name: system
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
    
    Enter user-name: system@ORCL
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from v$instance;
    

    When you use sqlplus to connect to the LOCAL database (do not use SQL * Net), then you can use the same version of sqlplus that comes with the database you are trying to connect.

    You can only use sqlplus v11.2 to connect to the LOCAL V11.2 database.

    You can only use sqlplus v11.1 to connect to the database LOCAL V11.1.

  • Techstack of HP-UNIX SUN Solaris migration

    Hi I need help in the migration process application server of HP to the Sun.

    I am following the Doc #238276.1, and I am applying techstack interop patch 4139957 (already applied the specific fix personalized).

    But if I run adpatch, I got the following and these binaries are HP.

    # adpatch
    ksh: adpatch: not found
    oracta001:/UL01/app/applmgr/lasrx/ad/11.5.0/bin >
    # ls-l adpatch
    -rwxr-xr-x 1 lasrx s/n 5963776 7 Dec 17:00 adpatch
    oracta001:/UL01/app/applmgr/lasrx/ad/11.5.0/bin >

    Thus, any Suggetions on it. Is this work with Sun solaris, if we need to do to support Sun solaris.

    Thank you.

    Were you able to apply the update custom using adpatch without error? If so and the problem with the executable files will appear only after applying this fix, then I would say that connect you a SR.

    Thank you
    Hussein

  • memory usage by a process of oracle on sun Solaris

    Hello forum,.

    I want to track the memory usage by a process of oracle on sun solaris 64-bit SPARC system.

    I tried to do it by the command of the PMAC, but I found that the output for each pid (process oracle) is even around 8GB. Please note that the 8 GB is the size of our LMS.

    Please let me know the command by which I can check that "how much memory that uses an oracle on Sun Solaris Sparc 64-bit server process.

    Thank you
    Sharad

    See http://tech.e2sn.com/oracle/performance/unix-performance-tools/process-memory-matrix

    Hemant K Collette

  • Install the package for Firefox 30.0 on Sun Solaris 10 SPARC?

    Looking for the latest Firefox 30 Sun Solaris 10 SPARC package. It appears he either not yet displayed or development of Firefox on Sun Solaris has ceased.

    http://FTP.Mozilla.org/pub/mozilla.org/Firefox/releases/latest/contrib/
    http://FTP.Mozilla.org/pub/mozilla.org/Firefox/releases/latest/contrib-localized/

    http://FTP.Mozilla.org/pub/mozilla.org/Firefox/releases/30.0/contrib/
    http://FTP.Mozilla.org/pub/mozilla.org/Firefox/releases/30.0/contrib-localized/

    The package name should be similar to "firefox-30.0.en-US.solaris-10-fcs-sparc-pkg.bz2".

    Thank you!

    30.0 Firefox for Solaris was posted to http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/30.0/contrib/ July 4, 2014. Took them a while but better late than never.

  • EBS R12 clone Linux from Sun solaris...

    Hi all

    Please let me know can we do EBS R12 clone of Linux for Sun solaris.

    Source - EBS R12 with Linux

    Target-Sun solaris

    Thank you
    Vincent

    user540791 wrote:
    Hi all

    Please let me know can we do EBS R12 clone of Linux for Sun solaris.

    Source - EBS R12 with Linux

    Target-Sun solaris

    Thank you
    Vincent

    No, it is not possible, the clone requirement is the source and target must be compatible to the binary format.

    Please see question 13 in

    FAQ: Cloning Oracle Applications Release 11i [ID 216664.1] (some of these FAQ also applies to R12).

    Thank you

  • Migration Oracle 11 g of Sun Solaris sparc to Red had linux

    Dear Experts,

    Could you please share your experiences of migration Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - Production of Sun Solaris Sparc 64 - bit Red Hat linux 5.6. Any links, documentation, issues, notes would be very useful.

    Thank you.

    I think that the best way to achieve this is to perform a test using test databases/servers. This test will identify the problems and obstacles specific to your installation, which may or may not be mentioned in the generic documentation that you can find.

    HTH
    Srini

  • Sun solaris user define process

    Hi friend;

    Need your help once more. I do installation on Sun can you show me a way how I can configure the maximum number of users in Sun Solaris Sparc(didn't learn yet their version,still waiting response) source.

    How can I make those?

    X display server

    X display I will use this right:

    RPM - qa vnc < < if it exists I'll run

    vncserver-geometry 24 - depth 1280 x 1024 (should I say starting the service VNC server or something like that?)


    The value of umask 022:
    Set the 'ulimit' as 'unlimited': (using Korn Shell)

    Can I define where and how?

    The following command displays the current settings of ulimit:

    I should put those in root, applmgr and oramgr, if I'm below I just put their right session? If so how I can put these value permanently?

    $ ulimit - a

    Time (seconds): unlimited
    file (Blocks): unlimited
    Data (KBytes): 131072
    Stack (KBytes): 2048
    Memory (KBytes): 216272
    coredump (Blocks): unlimited
    nofiles (descriptors): 4096
    Vmemory (KBytes): 1048576

    Set them all as unlimited as follows:

    ulimit unlimited t
    ulimit unlimited f
    ulimit unlimited d
    ulimit-s unlimited
    ulimit unlimited m
    ulimit unlimited-c
    ulimit-n unlimited
    ulimit - v unlimited
    =================================================
    Section 5: Additional steps to Solaris SPARC from Sun
    =================================================

    Make sure that/usr/ccs/bin, / usr/bin and "/ bin" appear in the $PATH before/usr/ucb.
    The "tr" must be in the directory/usr/bin instead of/usr/ucb.

    If this is the case, change your $PATH as follows:
    / usr/bin: / usr/ccs/bin: / usr/sbin /: usr/ucb

    I use echo $PATH if they are does not exist in the path what should I type?

    Thank you very much

    Hello

    the VNC Server service started?

    See (Note: 181244.1 - Configuration of VNC or XVFB as the X to 11i Applications Server).

    If I want to put these permenantly of value for the user root-appl and db I type these variables their .profile?

    You are referring to values of Wha?

    To create user and group orders as long as the same as linux?

    g s/n useradd-d/home/yyyy yyyy

    Groupadd dba

    useradd
    http://docs.Sun.com/app/docs/doc/816-5166/useradd-1M?a=view

    Groupadd
    http://docs.Sun.com/app/docs/doc/802-5747-1M/6i9g1e15j?l=SV&a=view

    Kind regards
    Hussein

  • Install OAS10g in sun solaris

    Hello
    I try to install OAS10g in Sun solaris Platform 9.

    I have a softaware OAS in one of my directory and the runInstaller is in another directory... (beca'z I have the 10g database in this directory...)

    Can someone tell me how I can install OAS_10g?


    Thanks in advance.

    Take a look at the installation guide:
    http://download.Oracle.com/docs/CD/B14099_19/Sol.1012/install.1012/install/TOC.htm

    Thank you
    Shail

  • abandonment of Oracle 8i on sun solaris platform server

    Greetings

    I have a database of oracle 8.1.7 sitting on a sun solaris Server 8 I have to let go. can someone give me the steps?

    On the unix database do not depend on any service from the OS. It save it yourself in the registry. Droping the database on any UNIX flaver is so very simple, just delete all files in database, Redolog files, control file, spfile, password file

    You can find the files of data dba_data_files v$ datafile
    Redolog v$ logfiles
    controlfiles v$ controlfiles

  • Databases do not come after the server reboot (sun solaris).

    Hello

    OS - Sun OS 5.10 local zone. Version of RDBMS - 11.2.0.3

    Databases do not come to the top after restarting the server.

    We checked the points below.

    Cat/etc/init.d/Oracle
    File permissions $ORACLE_HOME/bin/oradism are 4550.
    lock_sga parameter is set to false.
    Cat/var/opt/oracle/oratab entries are set to Y


    Yet databases are not coming after restarting the server.

    Please notify.

    Did you follow this http://docs.oracle.com/cd/B19306_01/server.102/b15658/strt_stp.htm#CFAHAHGA?

  • Solaris - Oracle10g - could not connect to the database via the application...

    Dear people...

    I am facing a problem trying to connect to the database via the application...

    This was not the case previously, that something was wrong after the installation of the application.
    During the installation of the Application, I had specified the database/SID as "wind".
    The application works well up to 10 days, when there is power failure.

    Resumption of food, I started the server Solaris (Sparx).
    Then started to oracle and listener.
    And when tried to start the application could not succeed.

    An error in the application log file:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 error: 2: no such file or directory

    Then follows things:
    -------------------------------------------------------------------------------------------
    $ su - pdmorcl1
    Password:
    Sun Microsystems Inc. SunOS 5.10 generic January 2005

    bash $

    bash-3. $00 sqlplus "virtue sysdba".

    SQL * more: Release 10.2.0.1.0 - Production on Thu Oct 21 10:57:16 2010

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    Connect to an instance is idle.

    SQL > startup
    ORACLE instance started.

    Total System Global Area 1258291200 bytes
    Size bytes 1978336 fixed
    218107936 variable size bytes
    1023410176 of database buffers bytes
    Redo buffers 14794752 bytes
    Mounted database.
    Open database.

    SQL > exit
    Disconnected from the database to Oracle 10 g Enterprise Edition Release 10.2.0.1.0 - 64 bit Production
    With partitioning, OLAP and Data Mining options

    departure from lsnrctl bash-3. $ 00

    LSNRCTL for Solaris: Version 10.2.0.1.0 - Production on October 21, 2010 10:59:02

    Copyright (c) 1991, 2005, Oracle. All rights reserved.

    From /d32/pdmorcl1/product/10.2.0/Db_1/bin/tnslsnr: Please wait...

    TNSLSNR for Solaris: Version 10.2.0.1.0 - Production
    System settings file is /d32/pdmorcl1/product/10.2.0/Db_1/network/admin/listener.ora
    Log messages written to /d32/pdmorcl1/product/10.2.0/Db_1/network/log/listener.log
    Listen on: (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1)))
    Listen on: (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=ffnew.ffpl.com) (PORT = 1521)))

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1)))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    For Solaris TNSLSNR version: Version 10.2.0.1.0 - Production
    Start date October 21, 2010 10:59:02
    Uptime 0 days 0 h 0 min 0 sec
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    Parameter Listener of the /d32/pdmorcl1/product/10.2.0/Db_1/network/admin/listener.ora file
    The listener log file /D32/pdmorcl1/product/10.2.0/Db_1/network/log/listener.log
    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=ffnew.ffpl.com) (PORT = 1521)))
    Summary of services...
    Service 'PLSExtProc' has 1 instance (s).
    Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...
    "Wind" service has 1 instance (s).
    Instance of "wind", status UNKNOWN, has 1 operation for this service...
    The command completed successfully
    bash-3. $00 pdm90/pdm90@wind
    bash: pdm90/pdm90@wind: no such file or directory
    bash-3. $00 sqlplus pdm90/pdm90@wind

    SQL * more: Release 10.2.0.1.0 - Production on Thu Oct 21 10:59:51 2010

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 error: 2: no such file or directory


    Enter the user name: pdm90
    Enter the password: pdm90

    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64 bit Production
    With partitioning, OLAP and Data Mining options

    SQL >
    --------------------------------------------------------------------------------

    Now, I'm very new to the world of the Oracle...
    I'm stuck here in the last 10 days...

    Does someone can give solution to this problem...

    Thanks in advance...
    Kind regards
    Manish

    Hello

    ORCL:/D32/orawc/product/10.2.0/Db_1:N
    Oracl:/D32/orawind/product/10.2.0/Db_1:N


    testwind:/D32/tstuser1/product/10.2.0/Db_1:N
    pdmorcl1:/D32/pdmorcl1/product/10.2.0/Db_1:N
    Wind:/D32/pdmorcl1/product/10.2.0/Db_1:N

    So now, I think that problem is some hand if environment variable at startup of the database. oratab files sows that you have multiple homes of oracle on your server
    1 /d32/orawc/product/10.2.0/Db_1
    2 /d32/orawind/product/10.2.0/Db_1
    3 /d32/tstuser1/product/10.2.0/Db_1
    4 /d32/pdmorcl1/product/10.2.0/Db_1

    Your environment variable must be set correctly when you start the database so that it starts from the good House. Listener could run from any head of mission and your database can register automatically. For your particular case, you should and environment flow as follows and it should work for you

    export ORACLE_HOME=/d32/pdmorcl1/product/10.2.0/Db_1
    export ORACLE_SID=wind
    export PATH=$ORACLE_HOME/bin:$PATH
    

    After setting your environment like that, now you conect 'as sysdba' and startup of the database (I think you know how to start the database. If it is already started, stopped and then start early). Now your database said the correct House

    Now you pasted above your tnsnames.ora file. Should the tnsnames.ora file $$be to the following Director (in the current home you above)

    /D32/pdmorcl1/product/10.2.0/Db_1/network/admin

    Now you try to connect you wanted. To make sure everything, also stick out now in the course of execution of the command line

    which tnsping
    which sqlplus
    which lsnrctl
    

    Salman

  • Pavilion a1620n won't start, the fans are not running. PS on the light and Sun. Start button does not illuminate

    Pavilion a1620n won't start, the fans are not running. PS on the light and Sun. Start button does not illuminate. EU tested ps and I was told it was OK. Disconnected from the motherboard except course before directed ps button and the cpu fan has become much brighter, but that's all that happened. Any suggestions on what to check? Checked with VOM push and he seemed to agree. Replaced the MB with the new Board of Directors, that didn't work either. Don't know if it was any good, it was a store Bulletin Board.

    All the indicators you mention leads to the PSU, not the Board of Directors.

Maybe you are looking for

  • MediaRoom Simulator 3.1 does not play .asx files.

    Our Mediaroom projects use for all videos .asx files.  When we were using Microsoft Mediaroom Simulator 2.x, the videos would play without any problem.  Now that we have upgraded to Microsoft Mediaroom Simulator 3.1, any of our videos will play. How

  • device driver Bluetooth for windows vista

    Hello I have windows vista on my laptop. For these days, I am not able to connect my phone via bluetooth. It gives the error as "device driver not found for the bluetooth device. Could you please help? Kind regards Nikhil Sharma

  • two virtual centres themselves appearing

    and work alone. you will need to delete the other. can someone let me know where that? I have 4 vc and the officers only 4 show agents but under vmware on the homepage I see 5. Thanks in advance.

  • Is it possible to see what is running in the system idle process?

    Too often, my laptop computer Windows 7 system slows down to a crawl. Lambasts the drive. And Windows 7 will be smart enough to know that things are bad, but not smart enough to know exactly which slows down things. It is simply asking if I want to u

  • Default profile AnyConnect

    I use the latest version of AnyConnect (3.1.04072) on Win7. Everything works fine, except just now I connected to a new VPN server during a workout. Now, this URL is the profile that appears by default whenever I open AnyConnect. I wish the profile b