freebsd 9.0 amd64 in vmware and I make nat after ssh root login access denied

FreeBSD 9.0 amd64 in vmware and I make NAT after ssh root login access denied.

I make vmware "nat" and after I worked connect with winscp but I get error is "authenticating with pre-entered password. Access denied.

But my password true and I can connect with "Bridged".

But I want connect with "nat".

I wait for help
 
root is not allowed to login using winscp(scp)/ssh by Default.

Solution 2 (Prefered - Secure):
1. transfer the file as a normal user, then
2. Copy it to /vmimages using the root login from the console.


Solution 1 (not recommended - Unsecure!!!!):
1. Edit /etc/ssh/sshd_config
2. Uncommented and change
Code:
# PermitRootLogin no
to
Code:
PermitRootLogin yes
3. Uncommented and change (If any yes|no)
Code:
#  PasswordAuthentication ...
to
Code:
PasswordAuthentication yes
4. Restart sshd(8)
Code:
/etc/rc.d/sshd restart
 
zhoopin said:
root is not allowed to login using winscp(scp)/ssh by Default.

Solution 2 (Prefered - Secure):
1. transfer the file as a normal user, then
2. Copy it to /vmimages using the root login from the console.


Solution 1 (not recommended - Unsecure!!!!):
1. Edit /etc/ssh/sshd_config
2. Uncommented and change
Code:
# PermitRootLogin no
to
Code:
PermitRootLogin yes
3. Uncommented and change (If any yes|no)
Code:
#  PasswordAuthentication ...
to
Code:
PasswordAuthentication yes
4. Restart sshd(8)
Code:
/etc/rc.d/sshd restart

of course I make PermitRootLogin yes

I make "nat" with vmware and after I cant login ssh root "Access Denied."

but I can connect root ssh login "Bridged"

so I want use "nat"

and I think must open port for nat

I wait for help
 
In case of NAT, You should setup Port Forwarding by using Virtual Network Editor.

Vmware: Edit > Virtual Network Editor.

Refer to vmware Reference:
VMware Workstation Help : Using the Virtual Network Editor
 
zhoopin said:
In case of NAT, You should setup Port Forwarding by using Virtual Network Editor.

Vmware: Edit > Virtual Network Editor.

Refer to vmware Reference:
VMware Workstation Help : Using the Virtual Network Editor

my /var/log/auth.log

Jul 28 17:01:20 FreeBSD login: ROOT LOGIN (root) ON ttyv0
Jul 28 19:26:49 FreeBSD sshd[1076]: Server listening on :: port 22.
Jul 28 19:26:49 FreeBSD sshd[1076]: Server listening on 0.0.0.0 port 22.
Jul 28 19:54:28 FreeBSD sshd[1132]: Server listening on :: port 22.
Jul 28 19:54:28 FreeBSD sshd[1132]: Server listening on 0.0.0.0 port 22.

Where else should I look
 
Back
Top