I am trying to do SSH localforward port setting in VI config file, so that I can connect Hive server to do some R programming.
Steps followed:
- In shell, I configured below in VI config file:
Host bdp-*
UserName a6000
Host bdp-prod
HostName pdl001.na.abc.com
LocalForward 10000:pdl002.na.abc.com:10000
- When I do
ssh bdp-prod
I get this error:
ssh: Could not resolve hostname bdp-prod: Name or service not known
I saw couple of similar issues posted here and viewed some blogs related to this setting but couldn’t figure out what is wrong:
ssh: Could not resolve hostname hnname: Name or service not known
OS-windows, ssh version is 4.1. bdp-prod is alias name for the hostname in config file.
pdl001.na.abc.com
. Regardless, unless you have a very different version ofssh
, theUserName
directive is not valid; should be justUser
. So, the question remains, what OS and what version ofssh
?