Tag Info

Hot answers tagged

5

Please check the sshd configuration file if Public Key Authentication is enabled search in /etc/ssh/sshd_config for #PubkeyAuthentication yes If it is commented out remove the leading '#'. if it is set to 'no' change it to 'yes' As @Darius mentioned please also check the setting AuthorizedKeysFile It should be commented out for default behaviour. Then ...


3

There are two steps to accomplish this. Step 1) Make sure your users are using the bash shell. Look at the entry for each user in /etc/passwd and ensure it ends in /bin/bash. For example, if you see this: joeuser:x:1234:1234:Joe User:/home/joeuser:/bin/sh then change it to this: joeuser:x:1234:1234:Joe User:/home/joeuser:/bin/bash Using bash should ...


2

No real need to worry, as this is the usual "internet background noise". If you want to get rid of those "attackers" have a look at fail2ban (even if it is 3rd party - its available via Homebrew and can also be applied to vnc). hosts.deny and therefore e.g. denyhosts are known to now work with sshd in mavericks anymore.


1

Yes, I finally did it, bloody hell! Well, if someone will encounter with similar problems, here's a solution: Download DHCP Server for Windows. It is a 100kB download available here. Go to the IPv4 properties page of the Ethernet adapter and set a fixed IP address, say 192.168.2.1 Run the DHCP Server Wizard (downloaded above) Select the Ethernet adapter ...


1

Using SSH, it's possible to forward the SSH port of your remote machine to your local machine, by first establishing a tunnel from your remote machine to your local machine. This approach would basically be SSH over SSH, which will have a tonne of overheads, but should work... Assuming your REMOTE machine (behind the firewall) has hostname remotebox, and ...


1

Using bash should result in reading ~/.bashrc. The following might help with ksh and sh (bash in sh mode), or when your ~/.bashrc is not executed during login. The sshd consults ~/.ssh/environment (check sshd_config(5) for permissions) and ~/.ssh/sshrc or ~/.ssh/rc. This gives the possibility to setup ENV=~/.profile or BASH_ENV=~/.profile and SSH_LOGIN=Y ...


1

Changing password of user2 fixed the issue. Now I am not sure if it has something to do with encoding or escaping of the password inside of WinSCP or any other weird problem. EDIT 1: I changed the password back to the one not working and tried to find the special char causing problems. It was a the non-ASCII char '§' causing the problem. I tried another ...


1

I have run across this issue only a few times. For me what would cause the broken pipe was a missing route. It only occurred when connecting from a physical machine on the main network to a VM on a different network behind a Nat. I would check for networking issues to see if you can stop the broken pipes from occuring. If you can not find a cause for the ...


1

My passwd(5) man page says this about the last field of an /etc/passwd entry, called the “command interpreter”: The command interpreter field provides the name of the user's command language interpreter, or the name of the initial program to execute. The login program uses this information to set the value of the $SHELL environmental variable. If ...


1

This sounds quite odd since—by default—any non-root user should be able to have the basic functionality you describe. That said, this issue does sound familiar. Whenever I setup a user on Ubuntu (Debian) I use adduser which works fine; but I have always had issues with useradd. As it states in the official man page for useradd: useradd is a low level ...


1

The remote shell might depend on configuration like /etc/profile to find the psadmin program; on Linux, some distributions don't enable the needed options when compiling bash. So tell it to read the configuration manually: plink [user]@[hostname] ". /etc/profile && psadmin" (Also, -pw? Really, make a key for use with -i instead.)


1

the id_rsa.pub can be copied anywhere without any real danger to it. This is your public key, and is meant for things like this. It is one half of a keypair, and sharing it with places you want access to is how you allow the private key to function. To allow for remote login, your public key needs to be listed in authorized_keys (authorized_keys2 on some ...



Only top voted, non community-wiki answers of a minimum length are eligible