Hi,
I am able to ssh using localhost:4200. How can I ssh from a Mac terminal window? Also how can I scp from Mac terminal?
Thanks
Ganesh
Created 11-15-2019 10:11 AM
Created 11-17-2019 12:18 AM
Any updates? Do you still need help? Else if it worked please take some time and log in accept the answer the thread can be closed and referenced by other members facing the same issue.
Created 11-17-2019 12:44 AM
Yes. I only can from browser http://localhost:4200. I am unable to this from a terminal on Mac as
ssh root@127.0.0.1 -p 4200
I get permission denied.
Also I would like to know how I can scp from a terminal to HDF or vice versa.
I tried scp <file> root@127.0.0.1:/ . <ip address of laptop>:/
I get connection refused
Created 11-17-2019 05:24 AM
I think there is a problem with your command,[scp <file> root@127.0.0.1:/ . <ip address of laptop>:/ ] try to revise your SCP command. I am trying to reproduce your situation with 2 hosts one running MobaXterm [Left] and the other Putty [Right]
I have just attached a screenshot below of the sequence and command. I have illustrated it with 2 hosts Simba [Left] and Yumbe [ Right], I am copying the file host_names_changes.json from Simba /root to Yumbe /root directory note the command
simba~]# scp host_names_changes.json root@192.168.0.138:/root so the format is
scp <file_name> user@<FQDN or IP>:/<Destination_directory>
The connection is established and once I confirm the root password of the destination host the file is copied. When I finally check on the destination
yumbe~]# ll
and the timestamp confirms that the file host_names_changes.json was indeed copied from Simba to Yumbe which would represent your Mac and HDF
Reference:
https://www.cloudera.com/tutorials/learning-the-ropes-of-the-hdp-sandbox.html
Does that answer you?
Created 11-17-2019 07:21 AM
@Shelton- Thanks. Let me give it a try. Will get back to you.