I installed Ubuntu Server 15 on VirtualBox 5.0.10 and set up ssh access to the guest using NAT/port forwarding (host:3022->guest:22). The host is Windows 7 64bit.
I can successfully access the Ubuntu server via putty or other ssh client from an external computer (not the host). But NetBeans 8.0.2 can't complete adding the remote host. It just freezes on "Connecting ip_addr:3022..." stage (authentication type is 'Password')
What can be the reason? How can I resolve it?
It seems like the reason is that com-jcraft-jsch.jar distributed with NetBeans 8.0.2 doesn't work with OpenSSH 6.9 distributed with Ubuntu 15. There is a workaround for this, but unfortunately it doesn't work with OpenSSH 6.9.
I was able to resolve the issue after I downloaded and built OpenSSH-5.4 (requires zlib-dev, libssl-dev and some other packages). To use existant ssh config files you need to configure OpenSSH properly before build:
./configure --sysconfdir=/etc/ssh
make
sudo make install
Please note that make install will install binaries in /usr/local/bin, configuration files in /usr/local/etc, the server in /usr/local/sbin, etc. To specify a different installation prefix, use the --prefix option to configure.
You may need to modify /etc/ssh/sshd_config file (at least to point to sftp-server) and you may want to modify /etc/init.d/ssh, but anyway, OpenSSH-5.4 does work with NetBeans 8.0.2.
UPD: NetBeans 8.0.2 also works correctly with OpenSSH 6.6.1
Related
My environment:
Ubuntu 20.04.3 LTS on Windows 10
-> https://www.microsoft.com/store/productId/9NBLGGH4MSV6
PhpStorm 2022.1 Build #PS-221.5080.224, built on April 13, 2022
My Problem:
I'm trying to export a PostgreSQL database inside the Database tab of PhpStorm.
To execute the export I right click the database in the list and click on the "Export with 'pg_dump'" option. This opens the Export window with all the options and command preview:
Inside of the window I get the error message "Path to executable is wrong" even tho the pg_dump file exists at the given path /usr/bin/pg_dump. This stops me from executing the export.
I have tried to manually install pg_dump in another directory and select it in the PhpStorm Export window, but it still won't detect the executable. The executable itself works fine.
The solution to this problem was to do a sudo apt-get install postgresql-client.
Apparently there is a general problem with the pg_dump executable of the "postgresql-client-common" package:
https://askubuntu.com/questions/501091/command-pg-dump-not-found
After installing the postgresql-client package, everything works fine in PhpStorm as well.
The code is pretty simple there: IDE checks that file exists and is executable, then run /path/to/pg_dump --version command and parse output looking for some keywords. Unfortunately there are no logs which can show exact reason, but I guess the issue that IDE can't get access to the file. Most likely due to WSL. The workaround is to install IDE and unpack PG binaries on Windows, then configure port forwarding to make PG server accessible from host OS.
I'm Currently trying to setup Remote developement environment with VS code.
I have installed Remote - SSH plugin and edited my .ssh/config file as below
Host ABC
User ubuntu
HostName xx.xx.xx.xx
IdentityFile ~/.ssh/filename
It trowing an error by saying "An SSH Installation couldn't be found"
Local Machine - Windows
Host Machine - Ubuntu(Linux)
Please help on this matter
You are missing an SSH tool in your host machine. Popular implementation of SSH protocol, OpenSSH is installed by default in Windows 10. First confirm if you have OpenSSH client by going to
Windows Settings >> Apps & features >> Optional Features
If not, install OpenSSH client through "Add a feature" option at the optional features page.
Mostly VSCode can pick the executable from common installation locations of the ssh.exe. If still not able to resolve, add the property below in VSCode settings
"remote.SSH.path": "your/ssh.exe/path"
like
"remote.SSH.path": "C:\Windows\System32\OpenSSH"
I have Windows 10 - 1608 version and it doesen't exist OpenSSH Feature in >> Optional Features.
I had downlosded OpenSSH seporately and now it's working as expected.
and another mistake I have done. I have tried to connect with .ppk key as the IdentityFile. And I have converted to private key using puttyGen. It is working perfectly now
Thanks for the help guys. Openssh was not present so had to install OpenSSH from Windows Powershell
https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse
Then copied the path of ssh.exe to VScode settings. Ex:
"remote.SSH.path": "C:\Program Files\OpenSSH-Win64\ssh.exe"
It worked perfectly.
Instead of installing OpenSSH, installing Git on Windows 7 also works because Git for Windows installs the SSH client. It ships OpenSSH with the package.
I am using Vagrant (1.7.4) with the VMware Fusion provider.
I have created a new VM from the centos/7 box, and configured shared folders in my Vagrantfile.
On startup, I get the message
HGFS was never found on the running virtual machine. This must be
installed either through VMware tools or Open VM Tools. HGFS is
required for shared folders to work properly. Please install either
the VMware tools or Open VM Tools and try again.
after a while, and the system starts up, but without the mounted shared volume.
I have tried installing Open VM tools, with a
sudo yum -y install open-vm-tools
in my Vagrant provisioner inline shell script
config.vm.provision "shell", inline: <<-SHELL
sudo yum -y update
sudo yum -y install open-vm-tools
SHELL
However, I still get the message at startup, and I do not see the mounted share.
I have an almost identical Ubuntu box (precise/64) that seems to work just fine.
I looked up the box https://atlas.hashicorp.com/centos/boxes/7 and from the release notes they clearly mention that virtual box guest are not installed
The VirtualBox Guest Additions are not preinstalled; if you need them for shared folders, please install the vagrant-vbguest plugin. We recommend using NFS instead of VirtualBox shared folders if possible.
I think what they should mention is that they did not install the VMWare tools neither so default sharing folder with VMWare does not work.
How to install the VMWare tools for the VM
Make sure to mount a cd
Open VMWare Fusion and make sure the VM is down - open the VM settings, select the hard drive and add a device, select the CDRom.
boot the VM from the VM menu select Install VMWare Tools
Installing VMWare Tools
login to the VM (either from VMWare or open an ssh session with vagrant ssh)
Install pre-requisites and update kernel (at least I had to run to successfully install the VMWare tools on VMWare fusion 8.0 - see here)
sudo yum install perl gcc gcc-c++ make binutils
sudo yum update kernel
reboot and run the following again
sudo yum install kernel-headers kernel-PAE-devel
mount the VMWare tools
this is found from the VMWare doc - Make sure to run the below commands with root or add sudo
To create a mount point, run:
mkdir /mnt/cdrom
To mount the CDROM, run:
mount /dev/cdrom /mnt/cdrom
To copy the Compiler gzip tar file to a temporary local directory, run:
cp /mnt/cdrom/VMwareTools-<version>.tar.gz /tmp/
Where version is the VMware Tools package version. To determine the version of VMware tools, run:
ls /mnt/cdrom
You see output similar to:
VMwareTools-5.0.0-12124.tar.gz
To change to the tmp directory and extract the contents of the tar file into a new directory called vmware-tools-distrib, run:
cd /tmp
tar -zxvf VMwareTools-version.tar.gz
To change directory to vmware-tools-distrib and run the vmware-install.pl PERL script to install VMware Tools, run:
cd vmware-tools-distrib
./vmware-install.pl
After all this, the tools were installed and shared folder is working correctly.
as a side note I can say that its much easier building a box with packer and install the tools directly from install. There are plenty of packer templates available on github for all versions of centos.
I'm back connected with a Freebsd server [netcat ] And There is a File On /tmp That i want to download it but
Its can't be browsed with My Browser So there is any ways to download it ?
because i don't have access to others folders . Just /tmp
You can use fetch(1)
eg. fetch https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
or download wget with
pkg install wget
and use wget
eg. wget https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
If you have an account on the server and the ssh daemon is running you can use scp. From a terminal emulator (e.g. xterm) you can do % scp freebsd.server.org:/tmp/file .. Of course replace freebsd.server.org with the correct name of the host.
If you're on windows, you could also use a graphical program such as Winscp.
If you have SSH installed on the server, you can use any SSH client out there. For Windows, WinSCP is a good option but if you run *nix OS with Gnome, Nautilus can do the same natively.
Our internal svn repository's URI looks like svn+ssh://svn/hogehoge/svnroot/. Using subclipse on eclipse that is run from a terminal, eclipse freezes when I try to access repository and never return. I found on terminal ssh password is asked but looks like it's just printed there and doesn't accept my input (password I enter is interpreted as command on terminal). Any idea is appreciated.
Environment:
Ubuntu 10.04
Eclipse Indigo SP2
Subclipse (Required) 1.6.18
Subversion Client Adapter (Required) 1.6.12
Subversion JavaHL Native Library Adapter (Required) 1.6.17
I would recommend you install SVNKit and change to using it instead of JavaHL. SVNKit includes a pure Java SSH client so it is able to provide a GUI prompt within Eclipse. There are two alternatives if you want to use JavaHL:
Start Eclipse from a Terminal window. SSH prompts will then appear within that window.
Run ssh-agent. Your SSH client will then fetch the keys from ssh-agent and will not need the terminal prompt.
Usually users are already using ssh-agent, in which case I would recommend just using JavaHL. Since you are apparently not using it, I would suggest to just use SVNKit.