The present application discloses a method,
system, electronic device and computer-readable storage medium for establishing a connection, and relates to the field of storage services. The method for establishing a connection includes: determining a
system connected to itself, where the
system is a storage system or a
server system; obtaining connection information corresponding to the system, and sending the connection information to a target connection device, where the target connection device is a connection device paired with itself; when the system is a storage system, sending the connection information sent by the target connection device to the storage system, so as to create a host on the storage system based on the connection information sent by the target connection device; when the system is a
server system, establishing an
iSCSI connection with the storage system based on the connection information sent by the target connection device. The present application eliminates the need to manually input connection information related to the
server system on the storage system, and eliminates the need to manually trigger an
iSCSI connection with the storage system on the host side, thereby improving the efficiency of
iSCSI storage service deployment.