Hi, What is the "standard" ip-address of my virtual machine (hostname -i does not give me a valid ip-address). I am using openSuse on parallels desktop and want to ssh from my mac to the linux machine. Firewalls etc. is open for ssh. Thanks in advance, Martin
I don't have ifconfig installed. Why shouldn't hostname -i work? I am using that all the time on my cluster, see man hostname: -i, --ip-address Display the IP address(es) of the host.
Because "hostname" probably relies on there being an entry for your hostname on the DNS server or the local /etc/hosts file. You need ifconfig which tells you the IP addresses of your network interfaces - not necessarily the same thing as the IP assigned to your host name. It almost certainly is installed but only available to root or by using "sudo". The actual address range you get depends on whether you are using host-only, shared or bridged networking.