Connect to Solaris 10 with ssh

Hi friends,
I have not much experience with the solaris ssh service but I want to connect to my Solaris 10 station with XManager via a Secure XDMCP and ssh, I can reach my solaris machine but the authentication with the login and password of root failed.
So I want to know if solaris requires a special configuration for a remote login via ssh.
Thank you

Hi,
Change the value of PermitRootLogin in sshd_config
# more /etc/ssh/sshd_config | grep PermitRootLogin
PermitRootLogin yes
# svcadm refresh ssh

Similar Messages

  • Sun Solaris 5.10 - SSH 1.1.3-Not able to connect to server with ssh -Urgent

    Hi,
    I am not able to coonect to a server using the using the below code.
    If i try the same code on the server to connect it self, it is working fine. But when i try to connect from other server it give the below error. And i am using the IBM Jdk while getting this error. Is there some setting to avoid this error.
    Error:
    INFO: Adding /usr/jdk/instances/jdk1.6.0/jre/lib/ext/sunpkcs11.jar to the extension classpath
    ConfigurationLoader
    Nov 30, 2010 4:33:12 PM com.sshtools.j2ssh.transport.publickey.SshKeyPairFactory <clinit>
    INFO: Loading public key algorithms
    Error While SFTP
    java.util.NoSuchElementException
    at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
    at java.util.StringTokenizer.nextElement(StringTokenizer.java:390)
    at com.sshtools.j2ssh.transport.AbstractKnownHostsKeyVerification.<init>(Unknown Source)
    at 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)
    SshClient sfc = null;
    try {
    System.out.println("inside Try of as its SFTP");
    ConfigurationLoader.initialize(false);
    System.out.println("ConfigurationLoader");
    sfc = new SshClient();
    sfc.connect(serverIp, 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");
    SftpClient sftp = sfc.openSftpClient();
    sftp.quit();
    sfc.disconnect();
    else
    throw new Exception("Invalid User Name or Password for user");
    catch (Exception e)
    System.out.println("Error While SFTP ");
    sfc.disconnect();
    e.getStackTrace();
    return false;
    return true;
    }

    Could it be that you are missing the SSH certificate on the computer where you're experience the problem?
    From what I understand, you need to copy the valid certificate from our server to the other computer. Perhaps the following example will be useful:
    http://www.sun.com/bigadmin/content/submitted/ssh_setting.jsp
    http://www.lifelinux.com/setting-up-an-ssh-certificate/
    Edited by: Dude on Nov 30, 2010 12:12 PM

  • Can not connect to a remote SSH server with my mac

    Ok have tried 4 different applications, fetch , captain ftp, terminal, etc.
    I am trying and connect to a friends ssh server to upload some file logs. I have the correct login/password, have tried both protocol 1 and 2. Port 22 is correct. I keep getting the error message
    User logging error - captain ftp
    SFTP connection to ..... could not be opened becasue the connection to the SFTP server could not be established or was lost - Fetch
    sshexchangeidentification: Connection closed by remote host - Ternminal
    We have tested it using Telnet and other programs on a PC and all is well.
    When i try and connect he receives the message
    Refused connect from cpe-"ip address"(ip address)
    policy: HostKey/etc/ssh/sshhost_rsakey
    Do i have a setting somewhere i am missing.

    1st, is the server behind a home router? Has port 22 been "Port Forwarded" from the internet side to the server's side of the router?
    2nd, from a Terminal session use the command:
    ssh -v -v -v [email protected]
    The -v -v -v triplets will give you a wealth of ssh connection information. If you read through this carefully you may find the root cause of your problems (assuming the 1st step above doesn't yield results).
    Another thing to consider, is that ssh will not make a connection to an account that it does not consider to be reasonably secure. This means that the home directory of the account and specific key subdirectories must have proper ownership and permissions, or ssh will not connect. The specific ownership and permissions needed and the files and directories checked are spelled out in the ssh man page
    man ssh

  • Problem with ssh and bash-completion

    I and a co-worker are having a weird problem with ssh and bash-completion. We have a local config in .ssh/config with hosts we connect everyday. An example:
    host foo
    hostname foo.org
    user foobar
    host foobar
    hostname foobar.org
    user foobar
    When we try to type
    ssh foo<tab><tab>b<tab>
    the console just freeze and we can't type anything, everything we type is ignored, but after about 30 seconds the host is completed.
    This works a some time ago, so some upgrade make this happen. Anyone can reproduce this?

    quigybo wrote:
    Actually thinking about it, rather than using the semi-dodgy fix posted on the bug tracker, we can just test if the daemon is running since we are not on MacOS X. It is cleaner and 250 ms quicker.
    --- bash_completion.orig 2010-09-14 05:33:22.000000000 +0930
    +++ bash_completion 2010-09-14 05:45:04.000000000 +0930
    @@ -1316,10 +1316,12 @@
    # contains ";", it may mistify the result. But on Gentoo (at least),
    # -k isn't available (even if mentioned in the manpage), so...
    if type avahi-browse >&/dev/null; then
    - COMPREPLY=( "${COMPREPLY[@]}" $( \
    - compgen -P "$prefix$user" -S "$suffix" -W \
    - "$( avahi-browse -cpr _workstation._tcp 2>/dev/null | \
    - awk -F';' '/^=/ { print $7 }' | sort -u )" -- "$cur" ) )
    + if [ -n "$(pidof avahi-daemon)" ]; then
    + COMPREPLY=( "${COMPREPLY[@]}" $( \
    + compgen -P "$prefix$user" -S "$suffix" -W \
    + "$( avahi-browse -cpr _workstation._tcp 2>/dev/null | \
    + awk -F';' '/^=/ { print $7 }' | sort -u )" -- "$cur" ) )
    + fi
    fi
    # Add results of normal hostname completion, unless
    This is the same test as was used in bash-completion 1.1.
    Thanks  quigybo, I use your patch, the issue is gone
    Why does so many packages depends on Avahi? Maybe make it optdepends is
    enough?
    my laptop $ pacman -Qi avahi
    Required By : gnome-disk-utility gnome-vfs libcups mpd sane

  • BizTalkServer 2010 SFTP Adapter from CodePlex - Configuring send and receive locations with SSH public and private keys

    Hi there,
    I am looking for step by step instrcutions on how to configure SFTP Codeplex adapter for both receive and send ports.
    Out business partner with whom we push/poll the files from wants us to use SSH encryption/decryption etc.
    Just wondering if the following functionality is supported in Codeplex SFTP adatper without having to write any code.
    Appreciate if there is manaul to do this for SFTP. BTW I do have all the our public and private keys and business partners Public key for configuring.
    For Send port: 1. we would need to encrypt the file with our business partners public key
                          2. sign the file with our private key.
                          3. Send the file through to SSH client which eventually transfers to Remote server.
    Receive port:   1. Connect to SSH Server with SSH-2 key and receive the file
                          2. Verify the file's digital signature agaisnt the Business partners PGP public key
                          3. Decrypt the file using our PGP Public key
    Thanks in advance

    Yes it is supported.
    You can find its documentation in this link 
    You can find section X.509 Certificate Identity Keys
    You can set public and private key in property SSH Identity thumbprint  of send and receive port
    I prefer to test it using client tool like
    FileZilla or WinSCP then test it using sftp adapter
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

  • RMI with SSH

    As I understand it, RMI listens on port 1099 and opens other ports upon a connection. This is why we have to open ports 1099 and >1023 on the server firewall. Which is great for all the users on the LAN.
    The site will only let us connect to this system through SSH (port 22). We might be able to use ssh to create a poor mans VPN to connect to RMI as in: ssh -L 1234:localhost:1099 user@remotehost. This fails to work because RMI uses more than just port 1099. If it were something like telnet, ssh -L 1234:localhost:23 user@remotehost it would just work.
    What I think I need is something running on the remote server which connects to port 1099 and listens on a port, for example, 1098. We could then connect with ssh -L 1234:localhost:1098 user@remotehost and packets would be passed to the appropriate RMI connection. Any ideas on how this could be done AND if it could work.
    **CRITICAL: I am not interested in changing the application running RMI at all. It works for everthing the end users need and don't fix it if it isn't broken. In any case, this isn't just about RMI, there are three non-RMI apps which do the same thing, so one solution would be used for all four of them.

    As I understand it, RMI listens on port 1099 and opens other ports upon a connection.No. The RMI Registry listens at port 1099 unless you tell it otherwise. Remote objects listen at system-chosen ports unless you specify a specific port when constructing/exporting them. You can use port 1099 for everything if:
    1. You create the Registry via LocateRegistry.createRegistry() in the same JVM that exports your remote objects.
    2. You cite port 1099 when constructing (super(1099)) or exporting (UnicastRemoteObject.exportObject(obj, 1099)) remote objects.
    Having done that, the only server-side port you need to be concerned with is 1099. That's a reserved IANA port number and it should be possible to get it opened in the firewall.
    And neither RMI nor TCP 'opens other ports' on inbound connections.

  • Installation BOBJ XI 3 on UNIX ( Sun Solaris ) with Oracle database

    Hi All,
    I want to deploy and install BOBJ XI Enterprise 3.1 on Sun Solaris with oracle database.
    My question is, do we need to add some oracle licenses stuff in BOBJ XI Enterprise server or we just using a connection from Sun Solaris to oracle database ?
    Pls Advise,
    Rgds,
    Denny

    Hi Denny,
    the risk is the same whatever DB server you are using. Once you have a setup where more than one application access the server, overload caused by one application can influence the performance of the other ones. You have to check if your DB vendor offers tools to monitor and limit the load on your DB server. But we are talking hypothetically now. I would recommend to check what's the actual load on your oracle DB server. If the server is not working at the limit (let's over 80% all the time), then I think that you can try to install BOBJ also in an existing oracle instance on the oracle server. You can reduce the risk and make the maintenance easier if you setup a dedicated oracle instance on your DB server just for the BOBJ repository.
    Regards,
    Stratos

  • Secured server with SSH and VPN?

    Hi,
    Have an Archbox at home and when I'm traveling I would like to connect to my Archlinux box at home to grab files and such things.
    Using ADSL with a static IP and a D-Link router.
    If I create a portfowarding rule of port 443 to my Archlinux box and user it to connect with SSH and VPN is that secured enought?
    I have family photos and stuff on the server that I don't want to be hacked or spread. Not a high target for hackers but for scriptkiddies!
    So, will a portforwarding rule and a use of SSH daemon and a VPN Server software make me secure all the way, the VPN and SSH is encrypted right?
    Any suggestions of a good VPN application?
    Server daemon for the "archserver" and clients for my laptop with dualboot, vista and archlinux.

    Yeah, SSH or OpenVPN should be perfectly fine.
    However, why port 443? If someone is scanning a large range of IP-addresses for commonly open ports to find active servers, they will most likely scan port 21, 22, 25, 80, 110, 443, etc. as these ports usually run the most interesting services.
    Since it has no impact on the usability, choose a high port, between 10000-65000, which is not commonly used. That way your system will not be identified as active by a simple portscan searching for active servers.
    You don't have to be worried about attacks targeted directly against you, if you don't have anything interesting on your system, a cracker wouldn't spend time on manually breaking into your system. Just mask yourself from worms etc. by using uncommon ports. Using SSH or OpenVPN will handle encryption, which ensures data integrity, even when you're connected to an unencrypted hotspot somewhere in the world on your vacation
    If you setup OpenVPN, you'll also have the possibility of routing all your Internet traffic throught your home system, which can be very handy in terms of surfing and checking mail from unencrypted hotspots around the world.

  • Booting solaris with cd

    Hi All!
    I got a annoying problem here, we have about 30 PCs installed with solaris 7, I want now to backup the ufs partition, where the solaris installation is on, my idea is to boot with a solaris cd, mount the backup file server via nfs, then dump the partition I want to backup with ufsdump, for restoring would be the same procedure, only with ufsrestore..
    now my problem, because I'm still quite new treating solaris issues, I just don't know how to get the network connection after I have booted with the install cd ( after starting with the webstart I got a offer from the installer, that it wants to make a partition so that it can copy all the boot files, because I don't want to have any change on my harddisk, I said no and get a shell. with ifconfig I can only see the loop device, I also tried to make a /etc/hostname.elxl0 file, but the mounted ramdisk is read only.....
    How can I get network connection after booting with the Install CD?
    we have 3com network cards, all the PCs are in a nis+ network.
    thanks a looooot for answers
    Luotao Fu

    I am at an early stage with this though I started some time ago. I downloaded all the Solaris files ending up with images named like sol-8-u7-ia-v1-a.zip.
    I unzipped the files.
    I was not sure what to do next as I am seeing comments about renaming the files with a suffix .iso. I have not done this. I seem to have Easy CD Creator, (I can see now I have started the HP software I have) and have selected the data option. It has written the first of my files to CD. This is called sol-8-u7-ia-v1-a
    I cannot boot from it, and do not know whether to change the bios to boot from CD.
    Please could someone tell me where the definitive instructions are.
    I found references to using downloading the DCA and putting it on to floppy. Well I have downloaded but at 1.44 Mb it will not write to a floppy!
    Thanks for any help
    Mike Gunner
    Reading UK (at home)

  • Hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem pleas

    hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem please
    and this is an pic for the problem

    There is some troubleshooting for 0xE8 error codes on this page : http://support.apple.com/kb/TS3221 - you could see if anything on that page fixes it

  • JDBC - Connection is busy with hstmt

    Dear Friends,
    I have created a function with three Statements and three Resultsets, each resultset for each separate statement to execute a select query and have proper close methods too.
    I am executing this function in JComboBox ItemListener. I am getting the error..."Connection is busy with another hstmt"...
    I am using Java Swing with MS SQL Server...
    I solved this error by proper closing of resultsets and statements. But i can't when i call this in itemlistener. can anyone help me pls....
    Regards,
    V.Prasanna

    Try:
    Connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    I had good luck with it to solve the same problem. I read somewhere that this is forcing the connection to create a new cursor etc...
    ming

  • How to connect my ipad with mac using bluetooth?

    how to connect my ipad with mac using bluetooth?

    You can't so quit trying. Take a look at this to see what is supported with regard to Bluetooth connections in iOS.
    iOS: Supported Bluetooth profiles

  • How to connect my Macbook with an ipad mini in order to have an access to the internet on my iPad?

    Dear fellows, I am having a trouble in how to connect my mac with an iPad mini in order to have an access to the internet.

    If you are attempting to share your iPad mini's cellular data connection with the MacBook, please check out the following Apple Support article for additional details on how to do so.

  • HT1695 How to connect my iPhone with the printers at school? Many thanks

    How to connect my iPhone with the printers at school? Many thanks

    They must be Airprint capable printers... if they are not, then there is no supported way of connecting to them.
    Airprint 101

  • How to connect my E61 with computer using WLAN

    please tell me the full setting of WLAN how i can connect my computer with WLAN

    You can't so quit trying. Take a look at this to see what is supported with regard to Bluetooth connections in iOS.
    iOS: Supported Bluetooth profiles

  • Satellite L500-13e connected to TV with HDMI cable - no sound on TV

    Hi! Sorry my English is bad.
    I have a problem, i tried to connect my notebook with TV through HDMI, but
    sound playing on notebook rather than TV ...
    In Realtek HD Manager i didn't find "HDMI Output options"
    Please, suggest what should I do?

    The whole story is a little bit strange now.
    As far as I know Satellite L500-13E is delivered with preinstalled Vista Home Premium and all drivers must be preinstalled.
    I don't understand how you can suddenly have this yellow question mark in device manager.
    What have you done with your notebook?
    Anyway, at first try to remove sound device from device manager and restart your notebook. If the yellow question mark is still there install Vista sound driver. You can find it on Toshiba download page - http://eu.computers.toshiba-europe.com

Maybe you are looking for