[Solved] Ssh and scp between two vmware Ubuntu


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu [Solved] Ssh and scp between two vmware Ubuntu
# 1  
Old 05-28-2013
[Solved] Ssh and scp between two vmware Ubuntu

Hello,

Please, I would like to connect a VM to another:
I typed as follows:
Code:
ssh root@192.168.1.4
root@192.168.1.4 's password:
Permission denied, please try again.
root@192.168.1.4 's password:
Permission denied, please try again.
root@192.168.1.4 's password:
Permission denied (publickey, password).

Every time I type the password, I'm sure it correct but it does not accept
it works when I do a ping..
Do you have any idea please?

Thank you so much.
BestRegards.

Last edited by vbe; 05-29-2013 at 08:46 AM.. Reason: code tags
# 2  
Old 05-28-2013
You might want to check if root is permitted to directly login inside sshd_config.
It's not a good security practice to enable the same.

I would recommend, enable it, exchange the ssh keys and put PermitRootLogin without-password inside your sshd_config on both hosts.

That way only keys will work for root account.
This User Gave Thanks to Peasant For This Post:
# 3  
Old 05-28-2013
You might want to check if root is permitted to directly login inside sshd_config.

where can i find sshd_config please ? more details please ?


Thank you so much for help.
# 4  
Old 05-29-2013
In /etc/ssh/sshd_config
PermitRootLogin yes

But as a first quick test what the problem is you can simply run: ssh username@192.168.1.4

Anyway: I would disable root login (or keep it disabled and ssh-login as user).
This User Gave Thanks to tornow For This Post:
# 5  
Old 05-29-2013
Thank you so much Smilie it works with the user name Smilie
# 6  
Old 05-30-2013
Please i have just one more question:
ifconfig return:
Code:
eth0      Link encap:Ethernet  HWaddr 08:00:27:71:aa:2c  
          adr inet6: fe80::a00:27ff:fe71:aa2c/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:602 erreurs:0 :0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:69641 (69.6 KB) Octets transmis:3223 (3.2 KB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:94:27:3a  
          adr inet6: fe80::a00:27ff:fe94:273a/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:0 (0.0 B) Octets transmis:3223 (3.2 KB)

eth3      Link encap:Ethernet  HWaddr 08:00:27:90:32:da  
          inet adr:192.168.1.5  Bcast:192.168.1.255  Masque:255.255.255.0
          adr inet6: fe80::a00:27ff:fe90:32da/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:2076 erreurs:0 :0 overruns:0 frame:0
          TX packets:389 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:284630 (284.6 KB) Octets transmis:104782 (104.7 KB)

lo        Link encap:Boucle locale  
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          Packets reçus:12 erreurs:0 :0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0

Is it possible that a remote machine sends me a file on this address
192.168.1.5 ?

Thank you for answer.

Last edited by Scott; 05-30-2013 at 07:51 PM.. Reason: Please use code tags to preserve formatting, not quote tags
# 7  
Old 05-30-2013
Don't reuse a thread for unrelated questions. Start a new one with a relevant subject title. Besides, this thread has already been marked as solved.

Regards,
Alister
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Virtualization and Cloud Computing

sharing between vmware (ubuntu) and windows7

Hi Friends, I have windows7 in my system and I installed vmware having ubuntu OS, I am able to work in both independently. But I want to share some text file from WINDOWS7 to the vmware ubuntu, I tried and able to ping vmware(ubuntu) ipaddress from windows7 and vice-versa. But when... (0 Replies)
Discussion started by: forroughuse
0 Replies

2. Emergency UNIX and Linux Support

plz help me. can we connect to Ubuntu(vmware) from W7 through winscp

i have W7 installed on my machine. And i also have installed Ubuntu though vmware. Now i want to know that through winscp can i connect to ubuntu from windows 7. plz help me thanks in advance Arpit (4 Replies)
Discussion started by: thearpit
4 Replies

3. Red Hat

ssh connection keep disconected , how to find way? in CentOs vmware

Hello i have CentOS installed on vmware , few days ago every thing was working fine. today every time im connect with putty to the CentOs server after few minutes it disconnect me , how can i find what is the reason ? (5 Replies)
Discussion started by: umen
5 Replies

4. Linux

Interesting challenge getting SSH from outside to my VMWare guest

Hi, I'm working on getting more acquainted with VMWare and the SUSE SLES OS, so I've downloaded and created a guest running SLES 11 SP1. This works great, no problems. However, there's some funny-ness (is that a word?) when I'm attempting/testing to SSH from outside my local LAN into the guest.... (3 Replies)
Discussion started by: brightstorm
3 Replies

5. UNIX for Advanced & Expert Users

Problem with ssh and scp

Hi there, I'm working with two linux servers and if I use ssh to connect from 1 to 2 everything works fine ( ..as usual:rolleyes:), while if I try to connect via ssh or to copy files through scp (as I usually do...) from 2 to 1, after the password I get this message: Connection closed by... (6 Replies)
Discussion started by: Giordano Bruno
6 Replies

6. Virtualization and Cloud Computing

Unable to install ubuntu on vmware server

Hi I have downloaded vmware server 1.0.10 and ubuntu 9.10. Installed vmware server on my windows xp and created the disk space for Ubuntu. Now when i am running the virtual machine using the above downloaded iso image, I get the installation window. I selected 'Install Ubuntu' option and... (2 Replies)
Discussion started by: kushal154
2 Replies

7. Shell Programming and Scripting

SSH and SCP HELP

Hi all Iam using ssh and trying to change to a different user but im not able to do it. -------- Script.sh ssh user@hostname sudo rootsh whoami -------- -------- Script2.sh ssh user@hostname su - username password whoami --------- When i run the Script.sh it is connecting to... (4 Replies)
Discussion started by: coolkid
4 Replies

8. AIX

ssh and scp in aix 4.3.3

I'm using scp to copy files to another company via our 4.3.3 server. I am having transfer problems right at the transfer point in scp. Below are 2 debug outputs showing the bottleneck. The lower level debug preceeds the higher level debug output. It just seems to stop and refuses to transfer... (0 Replies)
Discussion started by: oldogbert
0 Replies

9. BSD

SCP and ssh

I can't get ssh ans scp to work between to host on my network. I am prompted for the password and it isn't accepting the password and I know the password is correct because I am using the root password. What do I need to do to get ssh working between the two host and scp. I can putty into the... (2 Replies)
Discussion started by: rbizzell
2 Replies

10. Shell Programming and Scripting

SSH and SCP

The following ksh script is trying to get a file's cksum then, scp it over to a remote machine - get the cksum there and then compare the two cksums to make sure they match. I am having problems setting a variable on the remote host where it can be read locally. Is this even possible - reading a... (1 Reply)
Discussion started by: berrean
1 Replies
Login or Register to Ask a Question