connect to address 205.150.86.5 port 544: Connection refused
connect to address 205.150.86.5 port 544: Connection refused
trying normal rsh (/usr/bin/rsh)
---
Why is it trying to use rsh?!?! I assume ssh is failing so it attempts rsh. Any advice please? Spent the whole day at work doing this problem and have gotten nowhere except to generate this error message...
Just this once mojoman please post the Operating System and version of the source and destination servers.
In this case it would also help to know if there is a firewall or some other filtering service on the WAN between the two servers or whether they are on the same LAN without any possibility of external interference.
Hello Forum,
I'm using a bit of code from a script I found that allows me to capture the status code of connecting via SSH to remote servers:
ssh -qno StrictHostKeyChecking=no -o ConnectTimeout=1 user@$InputIP 'ls -l /home/user >/dev/null 2>&1' > /dev/null 2>&1
status="$(echo $?)"
echo... (4 Replies)
Hello forum,
I want to have a function to test for passwordless SSH setup. Pretty simple. However, what I'm finding difficult is to NOT return a password prompt to screen IF it's not in place.
Here's the function:
check_passwordless_ssh_working()
#check passed parameter, assuming it is... (4 Replies)
Hello all,
This bellow code works. I'm just trying to find a simplified way to achieve this. I'm sure there is an easier way and it must be to simple for me to find.
Verify that the OS version is 6.1. If not exit the script. Of course if i just put a && exit 1 at the end of the ssh... (11 Replies)
Gurus,
I have written a shell script to backup a database and applications. This is how the script works:
1. As applications user (say applmgr), the main backup script, say backup.sh, is kicked off.
2. backup.sh does ssh to oracle user and kicks off the database backup using nohup and... (1 Reply)
hi
I'm executing below 2 cmds which is working file.. ( cmd will ssh to remote host and look for pattern in remote file)
ssh $USER@$HOST "grep -n \"$PATTERN\" $RDIR/$RFILE | awk -F":" '{print \$1}'|tr '\n' ':'|sed 's/:$//g'" > /tmp/_log_out
VAR=`cat /tmp/_log_out`
output in /tmp/_log_out... (2 Replies)
Hi, I don't know why but about 80% of time when I execute the command
"df -v /directory" the output is always 0% used. Anyone have clue to why this is happening? Thanks. (2 Replies)
Hi All,
I was installed new server M5000 on solaris10. I'am try to connect to server by ssh client (putty) after type user name and password the server take long time to return prompt to me about 30-60 second. any body can suggess me how to do it. (8 Replies)
I have script runninn from cron pulling backup of hmc through nfs share
ssh user@hmc "bkconsdata -r nfs -h <hostname> -l <nfs share> "
This works perfect and I pull the backups regularly.. but problem
Now I need to enhance the script, like take action if a backup fails..
"How do I... (2 Replies)
Hi All,
Can anyone please let me know the syntax / how to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 'system()' function and '${?}'.
I am in a process to send the mail automatically with an attachment to bulk users. I have used 'Mailx' and 'Unencode'... (0 Replies)
grep $SEARCH_STRING /etc/passwd | cut -d":" -f 1,5
I need to check the $? value of grep in the above. If I place a test for $? after the above piped command, it returns success status of grep piped to cut.
How can I get the success status of grep alone? (5 Replies)