How to remotely start ssh on Solaris?


 
Thread Tools Search this Thread
Operating Systems Solaris How to remotely start ssh on Solaris?
# 1  
Old 05-13-2015
Question How to remotely start ssh on Solaris?

Hi everyone,

I have a Solaris machine:
SunOS 5.10 Generic_127127-11 sun4v sparc SUNW,SPARC-Enterprise-T5220

After reboot, I can't ssh to this machine. Error message:
ssh: connect to host xxxx port 22: Connection refused

It seems ssh daemon is not running, but I don't have physical access to this machine now and was told that I should be able to remotely start ssh on this Solaris.

Can anyone share with me how to remotely start ssh on Solaris machine? (or how to connect to my Solaris machine if ssh doesn't work?)

Thanks,
Zaiwen
# 2  
Old 05-13-2015
Hello Zaiwen,

Welcome to forum. You could try following steps as a startup for troubleshooting.
1- Try to telnet to port 22.
ii- check logs for daemon.log, /var/log,


Do let us know the results for above, check for errors present in logs and report back to us.
Also please use code tags for codes/commands/Inputs you are using in your posts as per forum rules.


Thanks,
R. Singh
# 3  
Old 05-13-2015
Hi RavinderSingh,

Thank you very much for the quick reply.

I tried telnet, but same error:
# telnet mymachine
Trying 123.123.123.123....
telnet: connect to address 123.123.123.123: Connection refused

I was told there is a way to connect to this machine if ssh doesn't work, but I can't find the document now Smilie

Any clue?

Thanks,
Zaiwen
# 4  
Old 05-13-2015
Hello Zaiwen,

You can use rlogin command too for same. After you are logged in, you can navigate through the remote file system and manipulate its contents (subject to authorization), copy files, or execute remote commands. I doesn't have solaris box handy with me, you can check it's man page and give it a try, let us know about same.


Thanks,
R. Singh
# 5  
Old 05-13-2015
Hello R. Singh,

Thanks again.

I tried to rlogin, but it just hangs for about 1 minute, then I got error "Connection refused".

No way out?

Thanks,
Zaiwen
# 6  
Old 05-13-2015
Your OS is likely stuck at some early boot milestone.

You need to connect to its console through the ilom to figure out what is going wrong.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unable to edit file remotely using ssh

Hi, I am trying to edit the /etc/sudoers file using ksh, however I am unable to do that. Please find the code below: ssh $i "/usr/local/bin/sudo /usr/bin/echo "$user_id ALL=(ALL) ALL" >> /etc/sudoers" I've tried changing the double quotes to single but it is still not working. The... (3 Replies)
Discussion started by: Kits
3 Replies

2. Solaris

SSH Remotely

Hello. I am trying to ssh and run a script from a remote computer. These computers will be both Windows and MACs. I am using Solaris 8 and what I have tried is: using putty ssh user@ip_address (remote command) /folder/folder/filename.sh The issue here is that the user profile has not... (3 Replies)
Discussion started by: jkmtm
3 Replies

3. Shell Programming and Scripting

ssh execute command remotely

Hi all, Today I want to write a script to run the commands remotely. If I run the command as follows: ssh <user>@<ip> 'ls; pwd' it works fine. But when I want to use ssh to set view in clearcase, it will lose the response. as follows ssh <user>@<ip> 'cleartool setview <view_name>; pwd'... (1 Reply)
Discussion started by: Damon_Qu
1 Replies

4. Shell Programming and Scripting

remotely append crontab over ssh

Hi I would like to append/modify crontab remotely over ssh and this is what i have tried so far. text.txt contains the following line. 0,15,30,45 * * * * /home/local/hello.sh cat text.txt |ssh $host 'tee' but i dont know how to edit the crontab here after piping it to tee command. (2 Replies)
Discussion started by: xiamin
2 Replies

5. UNIX for Advanced & Expert Users

script to remotely start several applications and instances

need advise on the ff a. what would be the best language for script that I can use to create a restart facility of all applications and instances I have on let say more than 20 servers? b. don't you think its not secure to have a central script residing on one server to remotely create a... (9 Replies)
Discussion started by: lhareigh890
9 Replies

6. UNIX for Advanced & Expert Users

script to remotely start an application instance

just wanted to ask if anybody have script template for the subject above so I can make ti as my guide? example a. server 1.1.1.1: restart script located at /etc/init.d/glassfish.sh b. server 2.2.2.2: central script that support admin will use to execute to restart the /etc/init.d/glassfish.sh... (0 Replies)
Discussion started by: lhareigh890
0 Replies

7. Shell Programming and Scripting

chown remotely via ssh / invalid group

Hi, i have a problem with a shell script. I need to change the owner and group of a file on a remote machine. I tried to use ssh but have some problems. The code: group=`ssh -t -t $1 -p 3344 "stat -c %G $cpath/FILE"` echo " $2:$group " echo $1 echo $cpath ssh $1 -p 3344 "chown... (5 Replies)
Discussion started by: Linien
5 Replies

8. UNIX for Advanced & Expert Users

connecting windows remotely from unix using SSH

Hi Can someone giv me some knowledge on accesing windows from unix and executing DOS scripts using SSH I would like to know how to go abt it...am new to it. Thanks in advance (1 Reply)
Discussion started by: lakshmis10
1 Replies

9. UNIX for Advanced & Expert Users

using ssh change password remotely?

Is it possible to change the password using a shell script, I want to remotely connect to a computer and then change password without manual intevention. Thanks in Advance Rishi (4 Replies)
Discussion started by: RishiPahuja
4 Replies

10. Shell Programming and Scripting

Not able to remotely connect to server using ssh

Hi, I am trying to run the below command in perl but when the perl script is executed it prompts a error message saying " ssh: <username>: Name or service not known ". Not able to understand this as this command runs perfectly on the server prompt. ` ssh <username>@pus4026dev df -k >>... (2 Replies)
Discussion started by: be2sp1
2 Replies
Login or Register to Ask a Question