Sponsored Content
Special Forums Windows & DOS: Issues & Discussions Passwordless login from Linux server to windows server Post 302961663 by RavinderSingh13 on Wednesday 2nd of December 2015 07:34:05 AM
Old 12-02-2015
Hello pratria,

Welcome to forums, by seeing your error which is:
Quote:
it says connection refused with port 22.
While on the server, check to make sure sshd is actually running, and is listening on port 22:
Code:
On UNIX:
netstat -anp | grep sshd
ON Windows(in cmd as admin you should run):
netstat -ab | find ":22"

If you don't get results, or they don't show you're listening on tcp 0.0.0.0:22... fix that. If you DO show that sshd is running and is listening on tcp port 22, check to make sure there's no firewall rule getting in the way. You could take it as a starting point or so, do share with us how it goes for you.

Thanks,
R. Singh

Last edited by RavinderSingh13; 12-02-2015 at 08:46 AM.. Reason: Adding windows command to solution now.
 

10 More Discussions You Might Find Interesting

1. IP Networking

networking linux to windows server

I have a linux 7 machine and i want to able to connect it to my windows 98 server.What do i do.They can ping each other but how do i make them see each other e.g be able to copy and send files to each other and surf??? how do i set up netscape to connect to my servers web server??? (2 Replies)
Discussion started by: perleo
2 Replies

2. Shell Programming and Scripting

passwordless login from a server to another server

Hi guys I am logged into one solaris server and I want to ssh other solaris servers and perform some commands. If I use script it asks for password. How to login without supplying password and execute some commands using script? I don want to use expect utility. Please help (2 Replies)
Discussion started by: johnl
2 Replies

3. Linux

Not able to login to my Linux server

Hi, I am not able to login on my linux server through my some user :- when i login through root and try to login it gives the following error :- #su - oracle su: incorrect password i have check the entry of oracle user is there in /etc/passwd file also... (11 Replies)
Discussion started by: amity
11 Replies

4. HP-UX

Unable To Perform A "Passwordless" SSH Login To A Server

Greetings! I am trying to perform a passwordless SSH login from a HPUX 11.31 client to a HPUX 11.31 server. Whenever I do a "ssh -l root serverA" from the client, I am prompted for a password. Giving the password, I am able to successfully login. However I am trying to accomplish a... (9 Replies)
Discussion started by: Rob Sandifer
9 Replies

5. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

6. Shell Programming and Scripting

Connect (SSH) to Windows server via Linux server through a script and passing command.. but failing

I am trying to connect to Windows server via Linux server through a script and run two commands " cd and ls " But its giving me error saying " could not start the program" followed by the command name i specify e g : "cd" i am trying in this manner " ssh username@servername "cd... (5 Replies)
Discussion started by: sunil seelam
5 Replies

7. Shell Programming and Scripting

Copy files from Linux server to Windows server

Hi All, I am generating report in a Linux server and once the report is generated the report(.txt file) needs to be automatically saved in a Windows servers. So i am looking for a script to transfer the file automatically from Linux server to Windows server? Please advise. Thanks... (3 Replies)
Discussion started by: arunmanas
3 Replies

8. Linux

How to connect Linux server (configure two way authentication) with Windows server?

Hi my name is Manju. ->I have configure the two way authentication on my linux server. ->Now I am able to apply two way authenticator on particuler user. ->Now I want to map this linux server to my AD server. ->Kindly tell me how to map AD(Active Directory) with this linux server. ... (0 Replies)
Discussion started by: manjusharma128
0 Replies

9. Windows & DOS: Issues & Discussions

Passwordless sftp connection from UNIX to windows server

HI , I am trying to make a passwordless sftp connection from a unix server to windows server I have used a existing script which is like this cd /home150/adm/.ssh/ ssh-agent /usr/bin/ksh <<EOF ssh-add IDBNEWKEY ssh-add -l sftp IDBUSER@abc.com cd /home/IDBUSER/Share/IDB/ rm ${FILE}... (0 Replies)
Discussion started by: Jcpratap
0 Replies

10. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

Hi All I need to transfer a file from a UNIX server to a windows server. I saw that it is possible to do this using scp command by looking at the forum listed below: ... (2 Replies)
Discussion started by: vx04
2 Replies
semanage-port(8)														  semanage-port(8)

NAME
semanage port- SELinux Policy Management port mapping tool SYNOPSIS
semanage port [-h] [-n] [-N] [-s STORE] [ --add -t TYPE -p PROTOCOL -r RANGE port_name | port_range | --delete -p PROTOCOL port_name | port_range | --deleteall | --extract | --list [-C] | --modify -t TYPE -p PROTOCOL -r RANGE port_name | port_range ] DESCRIPTION
semanage is used to configure certain elements of SELinux policy without requiring modification to or recompilation from policy sources. semanage port controls the port number to port type defitions. OPTIONS
-h, --help show this help message and exit -n, --noheading Do not print heading when listing the specified object type -N, --noreload Do not reload policy after commit -S STORE, --store STORE Select an alternate SELinux Policy Store to manage -C, --locallist List local customizations -a, --add Add a record of the specified object type -d, --delete Delete a record of the specified object type -m, --modify Modify a record of the specified object type -l, --list List records of the specified object type -E, --extract Extract customizable commands, for use within a transaction -D, --deleteall Remove all local customizations -t TYPE, --type TYPE SELinux type for the object -r RANGE, --range RANGE MLS/MCS Security Range (MLS/MCS Systems only) SELinux Range for SELinux login mapping defaults to the SELinux user record range. SELinux Range for SELinux user defaults to s0. -p PROTO, --proto PROTO Protocol for the specified port (tcp|udp) or internet protocol version for the specified node (ipv4|ipv6). EXAMPLE
List all port defitions # semanage port -l Allow Apache to listen on tcp port 81 # semanage port -a -t http_port_t -p tcp 81 Allow sshd to listen on tcp port 8991 # semanage port -a -t ssh_port_t -p tcp 8991 SEE ALSO
selinux (8), semanage (8) AUTHOR
This man page was written by Daniel Walsh <dwalsh@redhat.com> 20130617 semanage-port(8)
All times are GMT -4. The time now is 08:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy