Redirecting SSH through a machine
I’m looking for the simplest way to SSH from my local machine to a remote server through a server in the middle. If there’s a permanent way to do this even better. Asked by Benjamin K. In your ~/.ssh/config file: Host remote.example.com ProxyCommand ssh middle.example.com nc %h %p Answered by ceejayoz Check more discussion of this question. Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet about it [...]
Continue Reading »ssh knoppix v7 / ubuntu v12 live CD
Using any Live CD possible to do ssh? If yes kindly share the step. I have use Ubuntu v12 after booting in live mode $ sudo bash # apt-get install openssh-server # /etc/init.d/ssh restart or service ssh restart Error say unrecognized service Asked by neolix Step 1 use “clonezilla Live CD” Step 2 boot using Clonezilla Live CD Step 3 Choose language in Clonezilla live Step 4 Keyboard selection in clonezilla live Step 5 Enter [...]
Continue Reading »What to do when someone logged as root on my server
I have a server running Debian 6.0 with logcheck installed. Yesterday ago, I received this message: Jan 19 19:15:10 hostname sshd[28397]: Authentication tried for root with correct key but not from a permitted host (host=4.red-2-140-77.dynamicip.rima-tde.net, ip=2.140.77.4). I don’t know who this is and I doubt he was there by accident. Now, what should I do? First thing I done was disable ssh password authentication and switched to public/private key. I also check the authorized_keys file [...]
Continue Reading »Where is the sshd log file on Red Hat Linux stored?
Can someone please tell me where to find the SSHD log on RedHat and SELinux…. I would like to view the log to see who is logging into my account.. Asked by user150591 Login records are usually in /var/log/secure. I don’t think there is a log specific to the SSH daemon process, unless you’ve broken it out from other syslog messages. Answered by John Check more discussion of this question. Bookmark on Delicious Digg this [...]
Continue Reading »Need to send mail from our FQDN IP
I am trying to wrap my hear around how I am going to get around this latest hurdle. What needs to happen: PHP script sends email to our Exchange Server …. Sounds simple right? Well the issue is that the LAMP server that has the PHP script on it is located in our office building, while our web server is hosted at a dedicated hosting company IP 65.xxx.xxx.xxx. When we send the email to our [...]
Continue Reading »SSH: connect with public key avoiding passphrase prompt
root@myhost:/# ssh -i /opt/id_rsa.pub azureuser@myhost2.cloudapp.net Enter passphrase for key ‘/opt/id_rsa.pub’: azureuser@myhost2.cloudapp.net’s password: I have created key pair without passphrase, is it possible to get rid of passphrase prompt while connecting to remote server? I would like to use key connection while using this command: tar -c /opt/lampp/htdocs/somehost | ssh -i /opt/id_rsa.pub azureuser@myhost2.cloudapp.net ‘tar -xvf – -C /opt/somefolder’ > /dev/null 2>&1 & So that files transfer continue even if terminal have lost connection. Asked by Somebody [...]
Continue Reading »SSH tunnel over multi hops using putty
I have a situation where I want to connect to a Linux machine running VNC (lets call it VNCServer) which is behind two consecutive Linux machines i.e., to ssh into the VNCServer, I have to ssh into Gateway1 from my laptop, then from Gateway1 shell I ssh into the Gateway2 and then from that shell I finally ssh into VNCServer. I cannot change the network design and access flow Laptop–>Gateway1–>Gateway2–>Server. I have no root privileges [...]
Continue Reading »sshd ignores match block
I have the problem that sshd somehow ignores a match block. The configuration of sshd is kind of basic. You can find it here: http://pastebin.com/bNUYhQnx My goal is that every user except root should only be able to login with pubkey authentication. But even with the configuration mentioned above I’m still able to login with a user which is not root only with a password. Version of sshd is: OpenSSH_5.5p1 Debian-6+squeeze2, OpenSSL 0.9.8o 01 Jun [...]
Continue Reading »Can’t login anymore via sshd
I have been working with SSH for a long time, but recently I have needed to add another user to my set up. I followed some instructions I found on the web and did the folllowing. adduser sam sudo nano /etc/ssh/sshd_config AllowUsers michael, sam sudo reboot I set up the user sam completely, added the allow users to the sshd configuration and rebooted. Now michael is sudoer, but the funny thing is, I can login [...]
Continue Reading »Incoming traffic while on public network
I’m developing a web app and I need to be able to get incoming traffic from 3rd party services I use. This is a classic webhooks situation: I send a request with a return address and receive the response (via HTTP) some time later to the given address. The simple solution would be to provide my external IP address and forward the incoming traffic from the router to my machine. However, I’m working in a [...]
Continue Reading »Recent Posts
- Is there a way for administrators to disable users from installing Firefox extensions?
- Is there research material on NTP accuracy available?
- How to create a limited “domain admin” that does not have access to domain controllers?
- Can Windows RDC admin users be immune from being kicked?
- Domain Administrators account policy (After PCI audit)



