ssh

Getting the visitors MAC Address using PHP and ipTables

Hey guys, I'm doing a project for class and the professor has asked me to store the visitors IP address and MAC address to my database when they log in. So far after hours of looking around I have been able to get the IP using PHP, but now I need to figure out how to get the MAC address. From my research I can see that using iptables i...

Using Coda to access server SSH/sFTP

Hi, I have a VPS server and I lock down to only expose 3 ports 80, 443 and 22222 for ssh. So far I can connect to the server using Terminal (Mac) and Panic Transmit, but when I try to connect using Panic Coda the connection fail. What I am doing wrong? I see Coda support sFTP and I can connect on Coda to the SSH, but not to the sFTP. ...

time of disconnection in ubuntu server

in ubuntu server (with ssh protocol), how I can change the time of disconnection for inactivity? ...

Is there a way to svn co a local copy to a remote directory?

Is there a way to svn check out a local working copy to a remote directory? Running the import command works: svn import -m "Testing import" my-working-copy.dev svn+ssh://[email protected]/root/my-working-copy However, svn co doesnt: svn co file://localhost/Library/WebServer/Documents/my-working-repo/trunk svn+ssh://root@som...

What's an easy way to automate logging into a server and tailing a log?

I would like to save the keystrokes I make to ssh into a server (with a ssh public key) and tail a log file. What's the easiest way to do this. Is there a shell script that can do this, or if not, a short Ruby script? ...

Where is my git repository after pushing through an ssh tunnel?

I've set my router at home to do port forwarding via SSH. I've succesfully cloned git repositories via: git clone git+ssh://user@localhost:1234/repos local_repos and then working locally, I can push and pull without trouble. Now I'm in the situation where I created a project locally and I want to put it on my home machine. This i...

PTY.spawn child exit code ?

Hello, I'm trying to manage a ssh connection to a network device via the PTY module, with a code similar to this : cmd_line = "ssh [email protected]" begin PTY.spawn(cmd_line) do |r_f,w_f,pid| ... rescue PTY::ChildExited => cended ... end The whole i/o works pretty well, however I don't know how to get the exit status...

how to automatically run a bash script when my qsub jobs are finished on a server?

I would like to run a script when all of the jobs that I have sent to a server are done. for example, I send ssh server "for i in config*; do qsub ./run 1 $i; done" And I get back a list of the jobs that were started. I would like to automatically start another script on the server to process the output from these jobs once all are c...

Testing ssh connection

Hi, an important part of my project is to log in into remote server with ssh and do something with files on it: Net::SSH.start(@host, @username, :password => @password) do |ssh| ssh.exec!(rename_files_on_remote_server) end How to test it? I think I can have local ssh server on and check file names on it (maybe it could be in my t...

Set umask for a sftp account?

Hi, Could anyone tell me how to set the umaskfor a single sftp user? Worth mentioning is a IBM AIX... Adding umask 002 to that user's .profile didn't work... (the goal is that this user files are accesible to people from the same group). I've seen somehowto's around editing the sftpd configs, though I want to set it for one user only,...

Can I test authentication with an RSA key locally?

Is there a way to check locally if you're providing the correct passphrase to an RSA key? I recently had trouble pushing some commits to github because the push prompted for a password and then failed authentication. I verified that github had the correct public key for the id_rsa file in my ~/.ssh directory, and I verified that I could...

How should I write my ssh proxy command?

I'm trying to write a utility compatible with the -oProxyCommand of openssh. I wrote a utility that is a transparent socket to an ssh connection (or anything). Though it's taken some debugging I'm fairly confident it is indeed working correctly (manual IO tests, large binary file transfers all work). OpenSSH will not work with it. I'...

Where does Putty store known_hosts information on Windows?

How do I tell if Putty already knows about and has cached credentials for specific ssh servers? ...

Using proxies with Cucumber tests?

I have some Cucumber integration tests for a gem (not a Rails app). Some of them connect to a third party which operates a web service running on port 12345 which I'll call Banana. The service whitelists certain IPs that it allows connections from, one of which is Coconut. My box, Domino, is allowed to access Coconut via ssh. [restricte...

Why change default ssh port?

I've notices lot of admins change default ssh port. Is there any rational reason to do so? ...

Using textmate with applications accessed through ssh

I like using textmate to edit scripts for my analysis using R, Stata and SQL. Recently, I've had to use our grid server environment because the datasets are too large for my computer, and the ram allocations on the grid using R and STATA are much larger than what my computer has too offer. My current workflow is to open up these progra...

Is it possible to connect to SSH using JavaScript?

I know there is an implementation of VNC using WebSockets (http://novnc.com) but that still requires a server. I am looking to create a simple client-side JavaScript only (no Flash) connection to a port running SSH. I am guessing WebSockets is the only way to go since it does TCP. Any example code? Any other way? ...

Delete key is printing "^?" instead of deleting

I am ssh-ing into a server and when I am editing files, the delete key does not delete; instead it prints "^?" How can I fix this so that the delete key actually deletes the character before the cursor? Thanks ...

Can I get GNU Emacs to TAB complete filenames after using ssh in the *shell* buffer?

I am using GNU Emacs 23.1.50.1 (i486-pc-linux-gnu). What I want is conceptually simple, [TAB] indicates that I press the TAB key. M-x shell erik@furby:~$ ls bin Desktop Documents Dropbox R.tools erik@furby:~$ cd Drop[TAB] and tab completion works fine (i.e., Dropbox is completed) However, as soon as I ssh, this no longer wo...

install subversion (svn) via ssh

I have a godaddy shared server with ssh enabled. Is it possible to install svn via ssh? If not has anyone found any other ways? ...